[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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> [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|