Search found 2 matches

by antialias
Thu Jul 07, 2011 6:01 pm
Forum: XML Schemas
Topic: Xerces cos-nonambig schema validation error
Replies: 3
Views: 6793

Re: Xerces cos-nonambig schema validation error

Hi George. Thank you so much! I've converted your answer into XSD and now everything works as it's supposed to. Here's the code: <xs:element name="ListItem"> <xs:complexType> <xs:choice> <xs:sequence> <xs:element ref="ParaType1"/> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="Para...
by antialias
Thu Jul 07, 2011 4:26 pm
Forum: XML Schemas
Topic: Xerces cos-nonambig schema validation error
Replies: 3
Views: 6793

Xerces cos-nonambig schema validation error

I'm struggling with an error message when validating an XSD. So I implemented an easy example of the same issue using DTD, which works fine. Here's the DTD: <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT ParaType1 (#PCDATA) > <!ELEMENT ParaType2 (#PCDATA) > <!ELEMENT List (ListItem+) > <!ELEMENT L...