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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
