Hi Christian, The XMLParserConfiguration (e.g. SoftReferenceSymbolTableConfiguration) is essentially the XML parser: a pipeline of XML processing components including an XML scanner, namespace binder, DTD validator, etc... It may contain a schema validator but makes no sense for a schema validator to have one and as you've noticed setting one has no impact on its behaviour. There's no mechanism provided for setting the SymbolTable on the validator. It's an internal component. If you attempt to set it you'll get an exception.
Sorry, there's no way around this at the moment. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] Christian Koppen <[EMAIL PROTECTED]> wrote on 08/18/2008 07:58:01 AM: > 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]