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. -- View this message in context: http://www.nabble.com/Setting-Entity-Resolver-for-castor-SchemaReader-tf4068655.html#a11561751 Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

