At least two choices:
1.  You could take all the in-memory schemas and pre-parse them into a
grammar pool.  See the Grammars FAQ.
2.  You could put some URIs into the SCHEMA_LOCATION list but provide an
EntityResolver subclass which knew how to find the in-memory strings or
input streams corresponding to those particular URIs and create an
InputSource on those objects.

Jeff

----- Original Message ----- 
From: "Robert van Loenhout" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 17, 2004 1:42 AM
Subject: Schema validation without file


> Hi,
>
> is it possible with Xerces 2.6.1 to validate an XML document with an XML
> Schema, where the schema is in memory (string or InputStream).
> Or is it only possible to validate with the schema as a file location and
> the SCHEMA_LOCATION or SCHEMA_NONS_LOCATION property?
> Could someone mail me an example if this is possible.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to