Android XPath is available (i.e., ready to use), since the Android API level 8 (I think Android 2.2) you can find more details here .
To get started - as part of an action, try:
XPath xpath = XPathFactory.newInstance().newXPath(); String expression = "myNode"; NodeList nodes = (NodeList) xpath.evaluate(expression, parser, XPathConstants.NODESET);
The parser can be obtained by placing the ur xml document in the res / xml folder (you may need to create this xml folder yourself). Then you can access it through:
source share