Validation and Parser Bloat (was: Re: parsers for Palm?)

David Megginson david at
Tue Jun 29 20:32:17 BST 1999

Tim Bray writes:

 > Distinguish between <!DOCTYPE > and validation.  I do *not* agree
 > that parsing DTD syntax takes up 2/3 of a parser.  On the other hand,
 > it's reasonable to expect a validating parser to be twice the size
 > of a non-validating one.  Note that nearly all the existing 
 > validating parsers parse DTD syntax just fine. -T.

>From my hazy recollection, parsing everything inside <!DOCTYPE> added
about 10% to AElfred's size, and that included keeping information
from the declarations (but not validation per se).  The biggest size
bloat -- at least 30% -- came from having to work around inefficient
Java library classes by adding custom buffering and hash-table

All the best,


David Megginson                 david at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list