Hi,
you want to cache the grammar. Something like this
DOMBuilder *parser =
((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS,
0);
parser->loadGrammar("test.xsd" , XERCES_CPP_NAMESPACE_QUALIFIER
Grammar::SchemaGrammarType ,true);
parser->setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true);
This is for DOM, but the same stuff is available for SAX2XMLReader.
Gareth
On Wed, 30 Jul 2003, Matthew Berry wrote:
> Hi,
>
> I would like to perform SAX2 validation with an in memory schema. How is
> this possible? At the moment I am manually setting the externalLocation to a
> file, but I don't want to allow user to see the .xsd file (so that he can't
> modify it)
>
> Thanks
> Matt
>
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]