Ok, I think we've gone over this before. I have a document which has a default namespace (I guess that's what it's called) and some other namespaces defined:
<root xmlns="http://blah blah" xmlns:crap="http://yadda yadda"> .... </root> Now, I can use xpath to find nodes in the "crap" namespace, like so: //crap:elem[@attr='whatever'] However, I can't use xpath to find default namespace elements, like so: //someElem[@attr='poop'] Why is this? What code do I use to make the second xpath work? I've tried using SimpleNamespaceContexts and DefaultNamespaceContexts, and I'm lost. HELP! _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
