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

Re: XML DOM Object size limitations

  • From: Anatole Tartakovsky <anatolet@t...>
  • To: Chris Loschen <loschen@t...>, XML-DEV <xml-dev@l...>,robin@m...
  • Date: Thu, 25 Jan 2001 15:42:16 -0500

dom limitations
It really depends on the DOM implementation. In most Java implementations
I've seen it can be 5-10 larger then
It should not be the case for you because Microsoft DOM you are using is
different in that respect.
MSXML DOM footprint in cases of large files are actually smaller then
original file - the only drawback we have seen is automatic "UTF-8" to
"UTF-16" upgrade on texr node content.
Here is a link on the article with MSXML benchmarks and ratios:

Anatole Taratakovsky

----- Original Message -----
From: "Robin LaFontaine" <robin@m...>
To: "Chris Loschen" <loschen@t...>; <xml-dev@l...>
Sent: Thursday, January 25, 2001 1:58 PM
Subject: RE: XML DOM Object size limitations

> Newsha,
> I think you'll find that the memory image of a DOM for a 6MB file
> will be a lot more than 6MB, probably several times larger. In the
> early days I was certainly warned that for larger files 10MB+ DOM was
> not really very good because of its size. For our comparators we had
> to use an array structure that would use less than 6MB memory for a
> 6MB file so that we can handle large files.
> Does anyone know the actual ratio of memory size of a DOM relative to
> the file (of course it varies according to pretty printing and file
> structure, but approx.)?
> Robin
> At 12:04 PM -0500 1/25/01, Chris Loschen wrote:
> >At 2:51 PM -0700 1/24/01, Newsha Makooi wrote:
> > >Dear all,
> > >
> > >What is the XML DOM Objects' size limitations (if any)?
> > >
> > >When attempting to load a well-formatted XML string
> > >(DOMObj.loadXML(myXMLStrin)) of 6MB or bigger, the loadXML fails.
> > >Is there a particular reason for this?  Is my XML too big to load?
> > >Is there a size limitation at all?
> > >
> > >All response and thoughts on this are appreciated.
> > >
> > >Regards,
> > >Newsha Makooi
> >
> >I'm not sure if this is related, but I know we had a problem here
> >when the size
> >of the DOM object exceeded the amount of available memory. That was a
> >several orders of magnitude biger than 6 megs, though. Do you have more
> >than 6 megs of available memory when the load fails?
> >--
> >
> >
> >
> >--Chris
> >
> >------------------------------------------------
> >Texterity ~ XML and PDF ePublishing Services
> >------------------------------------------------
> >Chris Loschen, XML Developer
> >Texterity, Inc.
> >144 Turnpike Road
> >Southborough, MA 01772 USA
> >tel: +1.508.804.3033
> >fax: +1.508.804.3110
> >email: loschen@t...
> >http://www.texterity.com
> -- -----------------------------------------------------------------
> Robin La Fontaine, Monsell EDM Ltd
> (XML file comparison, Engineering data exchange and management using
> XML, R&D Project Management)
> Tel: +44 1684 592 144 Fax: +44 1684 594 504
> Email: robin@m...      http://www.deltaxml.com


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.