OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Fast text output from SAX?

[ Lists Home | Date Index | Thread Index ]

You could put one together from the components that make up the Saxon
serializer. This would give you a fair bit of configurabilitity: you
construct a pipeline that may or may not include modules for doing
indentation, CDATA sections, elimination of redundant namespaces, geenration
of character references etc. The downside is that you'll have to invest some
effort into understanding how the machinery can best be assembled to meet
your needs. And I offer no performance guarantees: it tries to be as
efficient as it can, but the functionality is fairly rich.

Michael Kay 

> -----Original Message-----
> From: Dennis Sosnoski [mailto:dms@sosnoski.com] 
> Sent: 13 April 2004 00:41
> Subject: [xml-dev] Fast text output from SAX?
> Does anyone have a recommendation for a fast SAX2 handler (Java) that 
> generates text XML output? I need something that's reasonably 
> complete, 
> including comments, CDATA sections, etc. Ideally it should 
> also use the 
> reported namespace prefix mappings (rather than making up its own 
> prefixes) and should generate empty elements where appropriate.
> This is for running performance tests related to the binary 
> XML thread. 
> I've been using a modified version of David Megginson's XMLWriter for 
> prior tests, but I don't think that's very optimized and I 
> want to give 
> text the best shot I can (without actually writing my own 
> code for this...).
> Thanks for any suggestions,
>   - Dennis
> -- 
> Dennis M. Sosnoski
> Enterprise Java, XML, and Web Services
> Training and Consulting
> http://www.sosnoski.com
> Redmond, WA  425.885.7197
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS