[Expat-discuss] eXpat : reduced in size version ?

Karl Waclawek karl at waclawek.net
Mon Jun 23 15:28:29 EDT 2003


> Try compiling Expat with XML_DTD undefined and XML_MIN_SIZE defined.
> Not sure how well tested this combination is.
> --> Tried both ! They resulted in reducing the parser size, but not to my
> need !

Yes, I expected that. 
 
> On Windows this reduces size by abut 20%, but the Dll is still much larger
> than what you want. Btw, Expat does only WF-parsing, no validation.
> --> Hope eXpat also does DTD validation.

No, Expat does not do DTD validation, unfortunately.

This is not needed in many cases, as applications often perform their own checks anyway.
One can build DTD validation on top of Expat, with the exception of these
"Validity Constraints":

- "Proper Declaration/PE Nesting"
- "Standalone Document Declaration"
- "Proper Group/PE Nesting"
- "Proper Conditional Section/PE Nesting"


Karl



More information about the Expat-discuss mailing list