xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gareth Reakes <gar...@parthenoncomputing.com>
Subject Re: Question on grammar caching
Date Thu, 22 Apr 2004 10:11:13 GMT
Hi,

> 1. I have a set of in-memory schema grammars for one or more namespaces. I
> always want to use this instead of the one specified in the xml instance
> doc.
> I can cache the in-memory grammars but would the SAX Parser automatically
> resolve the schema in the instance doc to the in-memory one.
> Since I would be writing a generic handler, I would not know the names of
> the exact schema locations specified in the instance document.

It will be based on namespace so will do what you want. Check out
usedCachedGrammarinParse.


> 2. Can I force validation on a xml which does NOT have a schemaLocation
> specified using the in-memory schema.

Yes, set validation to on. schemaLocation is only a hint.


> 3. What happens if the SAX parser has an error while grammars are cached.
> Are they cleared and the grammars have to be cached again.

No, they are still cached.


Gareth

-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Mime
View raw message