Hi all,

I have an xml filter chain culminating in a transform.  I have some XML filters 
that I want to use on the result of the transform, but I don’t want to write 
out the result of the transform and then read it back in for the last few xml 
filters... is there a way of adding them to the chain?


Basic code:

stf = (javax.xml.transform.sax.SAXTransformerFactory)tf.newInstance();

TransformerHandler th = stf.newTransformerHandler(...);
Transformer transformer = th.getTransformer();

AnXMLfilter filter = new AnXMLfilter();
            
filter.setParent(XMLReaderFactory.createXMLReader("org.apache.crimson.parser.XMLReaderImpl"));
            
filter.setContentHandler(th);

th.setResult(result);
            
filter.parse(new InputSource(...));
            


I want to add say 'filter2' to run over the result of the transform, what is 
the best way of doing this?


cheers
andrew

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003
 

Reply via email to