xml - Executing xpath in android -


I want to parse a XML file (execute XPATH)

I used a second and

Thanks

">

There is a small example in package description:

  XPath xpath = XPathFactory.newInstance (). NewXPath (); String expression = "/ widget / widget"; InputSource inputSource = new input source ("widgets.xml"); Nodeset Nodes = (Nodeset) xpath.evaluate (Expression, Input Source, XPathConstants.NODESET);   

If you already have a nodelist , then I think you can use one instead.

Comments