Hi,

I use Xerces 2.9.1 via the JAXP-API to validate XML documents
against XML schema in the following manner:

SchemaFactory factory = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
Schema schema = factory.newSchema(schemaUrl);
Validator v = schema.newValidator();
v.validate(xmlUrl);

I'm currently running into OutOfMemoryErrors. I found out that this happens due to String caching in a SymbolTable of the validator. I also found out that there's a SoftReferenceSymbolTableConfiguration which uses a special symbol table that allows the garbage collector to remove objects from the cache. But unfortunately, this seems to work only for the XML parser and not for the validator. Is this correct?

Can I configure the validator's SymbolTable somehow?

Kind regards,
Christian Koppen

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

Reply via email to