[jdom-interest] JDOM and Jaxen
George Pieri
george.pieri at wcom.com
Tue Nov 6 11:56:58 PST 2001
I am looking for a small example of what I need to do use
Jaxen and XPath with JDOM. I am already familar with JDom and
would just like to know what Jaxen classes I should instantiate
for it to evaluate an XPATH expression that will go against my
JDOM tree
// JDOM code
builder = new SAXBuilder() ;
StringReader sReader = new StringReader(xmlData) ;
doc = builder.build(sReader) ;
root = doc.getRootElement() ;
// Jaxen Code ?????
XPathElement xpath = new XPathElement("/customer/invoice=1111");
org.jdom.Element = xpath.getTextMatch(root,expr);
// Find the invoice=1111
If anyone has a JDom example it would be great.
Thanks in advance!
More information about the jdom-interest
mailing list