The problem is that any namespace prefix mappings defined on the root element seems to be used automatically by the xpath mechanism, any other prefix namespace mappings you'll have to define yourself.
You could use the following code for the mapping: HashMap map = new HashMap(); map.put( "prop", "http://schemas.biztalk.org/btf-2-0/properties"); DocumentFactory.getInstance().setXPathNamespaceURIs( map); document.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Header[1]/prop:properties[1]"); Note: it is advisable to always create specific mappings in the code... Regards, Edwin ------------------------------------------------------- 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