You don't want to add a namespace to your document (your document already has these namespaces), instead you want to tell the XPath processor to map a namespace to a specific prefix so you can use it in your XPath expression.
Please see the following messages for more information: http://www.mail-archive.com/dom4j-user@lists.sourceforge.net/msg02542.html http://www.mail-archive.com/dom4j-user@lists.sourceforge.net/msg02347.html http://www.mail-archive.com/dom4j-user@lists.sourceforge.net/msg02320.html Regards, Edwin -- http://www.edankert.com/ ------------------------------------------------------------------------- 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