XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS