Hi!

I read from a XML which uses a namespace like

...
<tai:Report xmlns:tai="http://www.kremsresearch.at/tai"; id="r1">
...

When I want to find the node from above I use the XPath 
//tai:[EMAIL PROTECTED]

or in Java
Element rep_root = (Element) document.selectSingleNode("//tai:[EMAIL 
PROTECTED]" +
id + "]");

This works fine, but what if the namespace is bound to something different
from "tai"?

How is it possible to handle this with dom4j?

Am I completely wrong with my understanding of Namespaces and this is not a
problem at all?

Thanks for your help!

Alex 





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to