I think, this is not possible in the current XSD language. Though as a workaround, you can consider treating the attributes in question as elements. Then you can use xs:choice instruction to get the behaviour you are asking for. for e.g., as following: <xs:element name="Menuitem"> <xs:complexType> <xs:choice> <xs:element name="ApplicationPath" type="xs:string"/> <xs:element name="ID" type="xs:string"/> </xs:choice> <xs:attribute name="name" type="xs:string" /> <xs:attribute name="Description" type="xs:string" /> </xs:complexType> </xs:element> I am not sure, if XML Schema language 1.1 will allow the provision you are asking for. On 4/28/08, Manikandan Thangavelu <Manikandan_T1@verifone.com> wrote: > > Hi All, > > Any updates on this question? I am in a kind of urgency and i am new bie to > XML schema. > Any help will be very much appreciated. > > Thanks and Regards > Manikandan -- Regards, Mukul GandhiReceived on Monday, 28 April 2008 16:26:56 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 28 April 2008 16:26:57 GMT