Hi, 
By default, Xerces2 only reports only the first invalid sub-element and skips 
other subsequent invalid siblings. Is the any way to set Xerces2 to report all 
invalid sub-elements?
Here is the sample XML: <?xml version="1.0"?><root> <X/> <A/> <Y/> <B/></root>
Here is the XML Schema: <?xml version="1.0"?><xs:schema 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>  <xs:element name="root"> 
<xs:complexType> <xs:all> <xs:element name="X" minOccurs="0"/> <xs:element 
name="Y" minOccurs="0"/> </xs:all> </xs:complexType> </xs:element></xs:schema>
Here is the Xerces2 validation output: [Error] simple_4.xml:4:6: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 'A'. 
One of '{Y}' is expected.
I want to see both element 'A' and element 'B' being reported in the output. 
Thanks. 

Herong

Reply via email to