You will have to tell your XPath what namespace prefix mappings to use. org.dom4j.Document doc2 = DocumentHelper.parseText(<the string mentioned above>); XPath xpathSelector = DocumentHelper.createXPath("/env:Envelope/env:Body/n1:sendNotification/n2:attachmentURL");
HashMap map = new HashMap(); map.put( "env", "http://schemas.xmlsoap.org/soap/envelope/"); map.put( "n1", "http://us.abc.com/notification"); map.put( "n2", "java:com.abc.us.mw.notifier.beans"); xpathSelector.setNamespaceURIs( map); List results = xpathSelector.selectNodes(doc2); Using the above should work. Regards, Edwin -- http://www.edankert.com/ N�HY隊X���'���u���[������� ަ�k��!���W�~�鮆�zk��C� [EMAIL PROTECTED],����a{���,�H��4�m���i�(��ܢo�v'