AW: [jdom-interest] JDOM and Jaxen

MarkW markw at wilsoncom.de
Wed Nov 7 04:33:17 PST 2001


Hi,
look at jaxen-1.0-beta-7\src\samples\JDOMDemo.java

Cheers,
Mark
> 
> 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!
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yourad
dr at yourhost.com



More information about the jdom-interest mailing list