Hmm, not sure what the issue really is. Can you elaborate a bit more ?
Werner
Anushajv wrote:
> We have a requirement where in we try to create a schema object from a string
> content.
>
> code is:
>
> // create the sax input source
> InputSource inputSource = new InputSource( new StringReader( content ));
>
> // create the schema reader
> SchemaReader schemaReader = new SchemaReader( inputSource );
> schemaReader.setCacheIncludedSchemas( true );
> schemaReader.setValidation( true );
>
> schemaReader.setErrorHandler( XMLHelper.SAX_ERROR_HANDLER );
> XMLCatalogEntityResolver resolver = new XMLCatalogEntityResolver();
> schemaReader.setEntityResolver( resolver );
>
> // read the schema from the source
> Schema schema = schemaReader.read();
>
> Since we provide input content from a string, the entity resolver is not
> recognized if the schema content has any <import>.
>
> Can you please provide some inputs of how we could handle this situation.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email