[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How parser maintains and XML tree

Subject: RE: How parser maintains and XML tree
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sun, 30 Jun 2002 20:22:59 +0100
xml tree parser
> I was just wondering that the xslt parsers use DOM
> structure and I am still not convinced that the parser
> would be able to maintain a large XML tree say, 50Mb
> or more. 
> It will show the Out of memory problems, if this is
> the case then what is the solution for this problem? 
> Otherwise in case it works for large XML struct. then
> how do they maintain in the memory?????

You are right that XSLT requires a tree representing the whole document
and that pretty well all current processors require this tree to be in
memory. There are Saxon users who have successfully processed documents
over 100Mb but this does need a lot of memory.

If the transformation is simple, you can often break it up so that each
"record" of the source file is transformed separately. With Saxon, you
can use saxon:preview to achieve this. With other processors, you can
write a SAX filter that breaks the large document into lots of small
documents and transforms each one in turn.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.