Hi DeWayne,

Dantzler, DeWayne C <[email protected]> writes:

> Ok, If I understand your comments correctly, loading a grammar does not
> override the reference specified in an XML instance. So, if the instance
> has an outdated DTD reference and I want to parse against a later
> version, using loadGrammar will cause the Parser to parse against both
> DTD's instead of only against the one loaded via loadGrammar. If this is
> correct, then how can I specify a specific DTD to parse against rather
> than the one specified in the XML instance?

I don't think you can (or want) to do this for the internal subset
(DTD that is embedded into the XML instance itself). For the external
subset, I believe you can do setLoadExternalDTD(false).

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

Reply via email to