Hi Edwin, will this work? When the default namespace is set on a document, wouldn't it also apply to all attributes? Wouldn't it be necessary to use "@we:filter" as well?
Regards, Richard > XPath xpath = new > Dom4jXPath("we:Document/we:[EMAIL PROTECTED]'Primary']/we:LOGIN/ > we:USERID"); >> xpath.setNamespaceContext(new SimpleNamespaceContext(map)); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user