This doesn't work, instead you will have to define a prefix for the
namespace, it does not matter that the prefix in you code does not
match the one in the XML document (actually the code wouldn't be very
portable if this had to be case)!

> try {
>   HashMap<String, String> map = new HashMap<String, String>();
>   // usually I put the prefix here as the first parameter

    map.put("we", "http://www.nget.com/coreapps/RunDVPRequest";);

>
    XPath xpath = new
Dom4jXPath("we:Document/we:[EMAIL PROTECTED]'Primary']/we:LOGIN/we:USERID");
>  xpath.setNamespaceContext(new SimpleNamespaceContext(map));
>
>  return xpath.selectNodes(_xml);
>  } catch (JaxenException e) {
>    System.err.println("Trouble with Jaxen...");
>    return null;
>  }

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

Reply via email to