[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Elements with same name and different data type
- From: rccarman@mindspring.com
- To: "S,Srinivasan (Srinivasan)" <srini@lucent.com>
- Date: Tue, 28 Nov 2006 18:34:34 -0500 (GMT-05:00)
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]