I am trying to figure out how to output a large XML document as SAX events. Basically, I parse a large XML file using ElementHandler interface to perform specific operation on the given element and then I would like to output that element to another file.
So far I have created a SAXWriter which uses XMLWriter as its ContentHandler, but I am not sure how to initialise the output document tree. Currently I get a file without a root element and no <? xml ?> declaration.
Any help is appreciated.
Best regards
-- benjamin kopic m: +44 (0)780 154 7643 t: +44 (0)20 7794 3090 e: [EMAIL PROTECTED] w: http://www.panContext.com/ |