OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] FW: XML Schema help

[ Lists Home | Date Index | Thread Index ]

Hi,

Check whether this helps u,

Schema
-------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd";
elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema.xsd";
xmlns:mstns="http://tempuri.org/XMLSchema.xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
	<xs:element name="element1" type="xs:string"></xs:element>
	<xs:element name="element2" type="xs:string"></xs:element>
</xs:schema>
---------------------------------------------

Regards,

MRN Murthy


>> Hi,
>>
>>      I have the following requirement to be incorporated in one of my
>> schemas.
>>      Requirement:
>>      1. To have to elements: elem1 and elem2
>>      2. Either of these two elements could be present or both could be
>> present at the same time in the instance document.
>>          I.e: (elem1 | elem2 | (elem1 & elem2))
>>
>>      How do I specify this in the schema???
>>
>> TIA,
>>
>>
>> Avinash Subramanya
>> Developer
>> Aztec Software And Technology Services Limited
>> 23, 3rd 'A' Cross, 18th Main, 6th Block, Koramangala
>> Bangalore - 560095, India
>> Phone: 5522892/93 Ext: 205
>> Fax: 91-80-5521987
>> Mobile: 98441 29329
>>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>







 

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

Copyright 2001 XML.org. This site is hosted by OASIS