Ben Griffin wrote:
There are two problems here. The first is the target namespace in your schema doesn't match the namespace of the document.Dave thanks for your suggestion,But it doesn't appear to be right - let me show you: I add a resource handler, and also a grammar in the following code. However, the output remains the same
The other is you need to tell the DOMBuilder to use cached grammars when parsing:
dc->setParameter(XMLUni::fgXercesUseCachedGrammarInParse, true); Dave