Next in thread →
Next in month →
Re: [xml-dev] Elements with same name and different data type
You can't have two elements with the same name/namespace and different types. -----Original Message----- > <xs:element name="Root"> > <xs:complexType> > <xs:choice maxOccurs="unbounded" minOccurs="0"> > <xs:sequence minOccurs="1" maxOccurs="1"> > <xs:element name="Element" >type="ElementType1" maxOccurs="unbounded"/> > </xs:sequence> > <xs:sequence minOccurs="1" maxOccurs="1"> > <xs:element name="Element" >type="ElementType2" maxOccurs="unbounded"/> > </xs:sequence> > <!-- Other Similar elements will go here --> > </xs:choice> > </xs:complexType> > </xs:element>
Next in thread →
Next in month →