I don't think this is the best solution, are you sure you want to turn off namespace-aware parsing?
It would have been a lot easier to define a prefix namespace mapping like below. HashMap map = new HashMap(); map.put( "sws", "http://scheduall.com/webservices/;); XPath xpath = DocumentHelper.createXPath( "//sws:Error"); xpath.setNamespaceURIs( map); List nodes = xpath.selectNodes( root); Regards, Edwin http://www.edankert.com/ ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user