You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Hollister, Jim" <Ji...@kla-tencor.com> on 2000/11/14 21:20:24 UTC
Problem validating with xsd:all
I'm trying to validate an XML document using a schema that contains the
xsd:all construct. When my xsd:all contains more than 5 or 6 elements,
Xerces blows up with a Java memory error and an infinite loop. My guess is
that Xerces is pre-computing all the valid combinations of the elements and
is running out of memory when the number of combinations gets large.
I'm using Xerces 1.2.1 and I've tried this with Java 1.1.8, 1.2.2, and 1.3.
I've attached a schema file, xml file, and a program that runs the parser.
Does anyone have any suggestions for how to work around this?
<<temp.xsd>> <<temp.xml>> <<Validator.java>>