Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
None
-
None
-
None
Description
I obtain an OutOfMemory exception when i validate the XML instance "test.xml" with the schema "test.xsd".
You can reproduce the issue on the xml-schema-1.1-dev branch, using the jaxp.SourceValidator as follows:
jaxp.SourceValidator -xsd11 -a test.xsd -i test.xml
Please note that this exception occurs only if the "full schema checking" feature is disabled.
XML instance: test.xml
<doc>
<a/>
<b/>
</doc>
Schema: test.xsd
<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema' >
<xsd:complexType name='fooType' >
<xsd:choice maxOccurs="100000">
<xsd:sequence maxOccurs="100000000">
<xsd:element name='a' maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:element name="b"/>
</xsd:choice>
</xsd:complexType>
<xsd:element name="doc" type="fooType"/>
</xsd:schema>
Attachments
Issue Links
- duplicates
-
XERCESJ-1227 Poor performance / OutOfMemoryError for sequences, choices and nested with large minOccurs/maxOccurs
- Open