I like to use Xpath to parse XML ins java, but when I am doing the same on android, XPath is not found.
any idea how it can be implemented. and also if its not possible then any other parser for android which is fast?
Thanks
Kai
I like to use Xpath to parse XML ins java, but when I am doing the same on android, XPath is not found.
any idea how it can be implemented. and also if its not possible then any other parser for android which is fast?
Thanks
Kai
Android XPath is available (i.e. as a ready-to-use implementation) since Android API Level 8 (I think thats Android 2.2) you can find more information here.
To get you started - within the scope of an activity try:
The "parser" can be obtained by putting ur xml document into your res/xml folder (you might have to create that xml folder yourself). Then you can access it via: