Hi, how do I address an element with an xpath that has a namespace not knowing what prefix is set for the namespace?
Here is an example document: <nsa:aaa xmlns:nsa="http://www.dom4j.org"><nsa:bbb>foo</nsa:bbb></nsa:aaa> I used the xpath expression "/nsa:aaa/nsa:bbb" to get the nsa:bbb element. But what if the document looks like this? <nsb:aaa xmlns:nsb="http://www.dom4j.org"><nsb:bbb>foo</nsb:bbb></nsb:aaa> The second document is absolutely equivalent to the first since the namespace prefix is only symbolic for the url which is equal for both documents. Also the following document is equivalent: <aaa xmlns="http://www.dom4j.org"><bbb>foo</bbb></aaa> How can I ignore the prefix for addressing elements? (The document may contain two or three different namespaces, so I cannot only use the local name!) Igor ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user