D
delphin.lecucq
Hello,
I want to load a grammar which doesnt not come with a DOCTYPE
declaration,
I tried with those lines, and it doesn't work
parser->setFeature(XMLUni::fgSAX2CoreValidation, true);
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, false)
// Load grammar and cache it
parser->loadGrammar(/path/to/my/file.dtd", Grammar:TDGrammarType,
true);
// enable grammar reuse
parser->setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true);
Actually, If the <! DOCTYPE validation SYSTEM "file.dtd" > declaration
is present, it does the validation with the file in the current path,
not the one I loaded in cache.
if the <! DOCTYPE ... > is not there, it does not validate.
for example, it would be nice if it were possible to override a DOCTYPE
declaration
Thank You,
Delphin
I want to load a grammar which doesnt not come with a DOCTYPE
declaration,
I tried with those lines, and it doesn't work
parser->setFeature(XMLUni::fgSAX2CoreValidation, true);
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, false)
// Load grammar and cache it
parser->loadGrammar(/path/to/my/file.dtd", Grammar:TDGrammarType,
true);
// enable grammar reuse
parser->setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true);
Actually, If the <! DOCTYPE validation SYSTEM "file.dtd" > declaration
is present, it does the validation with the file in the current path,
not the one I loaded in cache.
if the <! DOCTYPE ... > is not there, it does not validate.
for example, it would be nice if it were possible to override a DOCTYPE
declaration
Thank You,
Delphin