views:

11

answers:

0

How to get nodelist using XPath with namespaces and prefixes?

This java code segment doesnt seem to work. NodeList shows = (NodeList) xPath.evaluate("//ns1:Request", new InputSource(new FileReader("sample.xml")), XPathConstants.NODESET);

here's the sample.xml for input: 5ec9d112:1292fffd92a 1 8762342 T typical notes for any request 2010-06-23T13:43:55

very much appreciate any feedback and comments. thank you