Altova Mailing List Archives

RE: [xml-dev] Serialization with SAX

From: Johannes Lichtenberger <Johannes.Lichtenberger@------------.-->
To: Michael Kay <mike@--------.--->
Date: 1/15/2009 11:49:00 PM
Am Donnerstag, den 15.01.2009, 22:03 +0000 schrieb Michael Kay:
> You don't want to get the source of a serializer and modify it. You want to
> add a SAX filter into a pipeline. Your filter should simply call the next
> stage in the pipeline (that is, the serializer) for every event until the
> threshold is reached, and do nothing for events after that threshold (except
> of course for closing the outermost element and the document tidily).
> You can write a SAX filter by subclassing XMLFilterImpl, and you can see how
> to use it from a tutorial at

Ok, I should have read the next slide...

but new ExtractArticles(new SAXParser()); doesn't work (no such


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.