Boris Kolpackov wrote:
Hi Alberto,

Alberto Massari <[EMAIL PROTECTED]> writes:

Also, you should modify the SAXCount example to add

   parser->useScanner(XMLUni::fgWFXMLScanner);

that installs a scanner that ignores DTD, XMLSchema and any other
check apart well-formedness.

My understanding of the XML specification is that a conforming
non-validating XML parser still has to parse and check DTDs
which may be needed for things like entity reference expansion
and default attribute value substitution. So I don't think a
conforming parser can just ignore DTDs.

Well, they only need to process the internal subset. However, that particular scanner makes no claim to be conforming, since it doesn't even do that.

On the other hand, it might be a good choice, if you trust the source of your documents, and that source has told you there are no DTDs present.

Dave

Reply via email to