OutOfMemoryError in SchemaFactory.newSchema
Hello,
i need to validate an xml document against an xschema. i user the following code to test this with an xml of size 4KB and an xschema of 50K.
final String sl = XMLConstants.W3C_XML_SCHEMA_NS_URI;
SchemaFactory factory = SchemaFactory.newInstance(sl);
StreamSource ss = new StreamSource("sap_remadv.xsd");
Schema schema = factory.newSchema(ss);
Validator validator =schema.newValidator();
validator.validate(new StreamSource("edixml_remadv.xml"));
factory.newSchema takes quite a lot of time and break with an OutOfMemoryError. I have set the VM parameters to -Xmx768M, which i think should be enough.
Are there an known issues? I need to use 1.4.2 JDK for this solution!
Thanks in advance
Christian

