Details
-
Bug
-
Status: Resolved
-
Resolution: Incomplete
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
14996
Description
File: \xercesc\internal\XMLScanner.cpp
Line: 2461
We cannot have an internal subset whn reusing a grammar (fUseCachedGrammar)
fToCacheGrammar flag instructs the parser to cache the grammar (for later
reusing). So the following condition is incorrect:
// We can't have any internal subset if we are reusing the validator
if (fUseCachedGrammar || fToCacheGrammar)
ThrowXML(RuntimeException, XMLExcepts::Val_CantHaveIntSS);
Proposed patch:
// We can't have any internal subset if we are reusing the validator
if (fUseCachedGrammar)
ThrowXML(RuntimeException, XMLExcepts::Val_CantHaveIntSS);