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

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML DOM Object size limitations



Newsha,
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:
http://msdn.microsoft.com/xml/articles/xml02212000.asp

Regards,
Anatole Taratakovsky
dw2java@xmlsp.com
www.xmlsp.com

----- Original Message -----
From: "Robin LaFontaine" <robin@monsell.co.uk>
To: "Chris Loschen" <loschen@texterity.com>; <xml-dev@lists.xml.org>
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
file
> >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@texterity.com
> >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@monsell.co.uk      http://www.deltaxml.com
>