Edwin Dankert
Thu, 21 Dec 2006 08:07:17 -0800
The adapted code:
//SchemaVersion
Document doc = DocumentHelper.parseText(msgText);
XPath xp = DocumentFactory.getInstance().createXPath("//prefix:SchemaVersion");
Map ns = new HashMap();
ns.put( "prefix","http://bpm.tibco.com/2004/IAP/MED/1.2/MED");
xp.setNamespaceURIs( ns);
List nodes = xp.selectNodes(doc.getRootElement());
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