Re: Schema validation without file

2004-02-17 Thread Jeff Greif
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 correspond

Re: Schema validation without file

2004-02-17 Thread Phil Weighill-Smith
Provide an EntityResolver that returns your schema document as a stream of some sort wrapped in an InputSource and assign the entity resolver to the XML reader. class MyEntityResolver implements EntityResolver {     public InputSource resolveEntity(String publicId,     String systemId) thr

Schema validation without file

2004-02-17 Thread Robert van Loenhout
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 examp