Hi,

I am running into this big problem with the default namespace we`re
using here. All documents are defined as:

<Article xmlns="http://....."; ..>

so, there is no prefix, which is legal since all elements without a prefix
will be using this default namespace.

But ..

    HashMap idg = new HashMap();

    idg.put ("", "http://...";);
    xpathSelector.setNamespaceURIs(idg);

does not work of cause.

If i strip the "xmlns:..."-String from the XML file everything works, but
that is not really a workable option.

So my question is: How can i use the default namespace with XPATH to
find the elements i am looking for?

Any help/hint greatly welcomed.



Juergen Fey




_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to