Dave, once again, thank-you for your response and the support.
Yes, making the two changes that you suggest gets the document to load
without error.
What is it I need to do to get the
DOMLSResourceResolver::resolveResource() triggered?
Best regards
Ben
On 16 Mar 2009, at 06:59, David Bertoni wrote:
Ben Griffin wrote:
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
There are two problems here. The first is the target namespace in
your schema doesn't match the namespace of the document.
The other is you need to tell the DOMBuilder to use cached grammars
when parsing:
dc->setParameter(XMLUni::fgXercesUseCachedGrammarInParse, true);
Dave