SchemaVersion is an element in the document. This code seems to imply to me
that I need to create a separate XPath object for each element I want to
search for. Is that correct?
On 12/21/06, Edwin Dankert <[EMAIL PROTECTED]> wrote:
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
--
"The future will be better tomorrow"
-- Al Gore
-------------------------------------------------------------------------
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