Hey Franz
You could always try writing a SAX XMLFilter to
filter out whatever you like using whatever matching patterns you can think of.
Then you can install it as follows
XMLFilter filter = new MyFilter();
SAXReader reader = new SAXReader();
reader.setXMLFilter( filter );
...
Its on our TO DO list to allow XPath patterns to be
used with the addHandler() method so that you could use an XPath expression like
//foo or /*/bar or whatever - it shouldn't be too hard to do. The org.dom4j.rule
package already does most of the necessary stuff already. If anyone fancies
diving in and patching the code please go ahead - otherwise I'll try get around
to it real soon.
James
|
- [dom4j-user] SAXReader.addHandler() path arg Franz Beil
- Re: [dom4j-user] SAXReader.addHandler() path arg James Strachan
- Re: [dom4j-user] SAXReader.addHandler() path arg Craig Goss