How can I get JDOM/XPath to ignore namespaces?

Posted by AdSR on Stack Overflow See other posts from Stack Overflow or by AdSR
Published on 2010-04-09T12:40:35Z Indexed on 2010/04/09 12:43 UTC
Read the original article Hit count: 182

Filed under:
|
|
|
|

I need to process an XML DOM, preferably with JDOM, where I can do XPath search on nodes. I know the node names or paths, but I want to ignore namespaces completely because sometimes the document comes with namespaces, sometimes without, and I can't rely on specific values. Is that possible? How?

© Stack Overflow or respective owner

Related posts about jdom

Related posts about namespaces