This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Processing a huge XML document
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Processing a huge XML document
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 30 Jul 2001 09:24:45 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I am quite puzzled as to which method would be faster
> to transform
> a 50 MB XML file: an XSLT, or using SAX call-backs.
If your transformation is serial, then a SAX application will certainly be
much faster, as you don't have to build the tree in memory (the tree for a
50Mb file will be vast).
You might like to look at Saxon's "preview mode" if you want an XSLT
solution, this essentially does an XSLT transform on one subtree at a time,
avoiding the need to build the complete tree in memory.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list