From: Robert Klemme Date: 2007-07-29T19:05:02+09:00 Subject: Re: Processing a huge xml file On 29.07.2007 00:55, Tim Perrett wrote: > When you say "known the parser could store an optimized representation > in memory" what exactly do you mean? XML is a generic format, so a XML DOM needs to be able to store all variants. XSD is a specific format (as is every other format defined by a DTD or even XDS) and so you can craft a specific model that represents XSD's object model. One example: since XML is markup you can have things like text13blah Any DOM implementation needs to be able to store "text" and "blah". But often, when XML is used to represent data, there is either text in an element *or* nested elements but not both. An OO implementation then would only need to allow for one of the two. Hope that clears it up. Kind regards robert