Gareth, Thanks for you help. I like Mark Weaver's approach of installing an EntityResolver. Do you see any problems with this approach?
Also, why in the documentation is the loadGrammar function marked as "Experimental - subject to change". This worries me a bit. -----Original Message----- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 13:45 To: [EMAIL PROTECTED] Subject: Re: In Memory Schema Hi, you want to cache the grammar. Something like this DOMBuilder *parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYN CHRONOUS, 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
