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 bu...@apache.org on 2003/07/17 10:24:22 UTC
DO NOT REPLY [Bug 21677] New: -
XML schema validation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21677>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21677
XML schema validation
Summary: XML schema validation
Product: Xerces2-J
Version: 2.4.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Blocker
Priority: Other
Component: SAX
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: sam.waegeman@xt-i.com
I have a validation error when I try to validate my xml file. The problem is
that normally the result of the validation must be correct.
Here is an xml file:
<content>
<date>2003-07-17</date>
</content>
My schema looks like this:
<xs:element name="content">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="id" type="xs:string"/>
<xs:choice>
<xs:sequence>
<xs:element name="date" type="xs:date"/>
<xs:element name="time" type="xs:time"/>
</xs:sequence>
<xs:element name="date" type="xs:date"/>
<xs:element name="time" type="xs:time"/>
</xs:choice>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
validation result:
cvc-complex-type.2.4.b: The content of element 'content' is not complete. One
of 'time' is expected.
The parser just takes the first choice but he doesn't look at the other choice
possibilities.
Normally I would chance the schema but this is impossible because it is a
standard that I'm using.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org