Featured post
parsing - Alternative for XPath for Android 2.1 -
i have port application working in android 2.1 made android2.2
now have problem in xml parsing xpath not supported in android 2.1 using sax parser.
in xmlparsing method in older code use xpath complile key \employee\designation\value\"
eg: key = \employee\designation\value\"
xml file
personnel>
address>
/address> employee type="permanent">
name> seagull /name>
id> 3674 /id>
age> 34 /age>
designation>
value>34 /value>
/designation>
/employee>
- employee type="contract">
name>robin /name
id>3675 /id>
age>25 /age>
designation> value>34 /value>
/designation>
/employee>
employee type="permanent">
name>crow /name>
id>3676 /id>
age>28 /age>
designation>
value>38 /value>
/designation>
/employee>
/personnel>`
o/p comes 34 , 38`enter code here , returns mw corresponding values many in xml file. need use saxparser
how can implement this? there way using saxparserfactory ,schema?
thanks response.
- Get link
- X
- Other Apps
Comments
Post a Comment