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!

_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to