|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: help me in writing schema file for the xml
Title: Message I am
not an expert but I believe what you're asking would be achieved by
following:
< xs:simpleType name="AgeType"><xs:restriction base="xs:integer"/> </xs:simpleType> <xs:simpleType name="GenderType"> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:simpleType name="LangType"> <xs:restriction base="xs:string"> <xs:enumeration value="English"/> <xs:enumeration value="French"/> </xs:restriction> </xs:simpleType> <xs:complexType name="SType"> <xs:complexContent> <xs:extension base="tns:SH"> <xs:sequence> <xs:element name="Subject" type="tns:LangType" maxOccurs="unbounded"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="SH"> <xs:choice maxOccurs="2"> <xs:element name="Age" type="tns:AgeType"/> <xs:element name="Gender" type="tns:GenderType"/> </xs:choice> </xs:complexType> <xs:element name="Data"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element ref="tns:_Base"/> </xs:choice> </xs:complexType> </xs:element> <xs:element name="_Base" abstract="true"/> <xs:element name="Name" type="tns:SType" substitutionGroup="tns:_Base"/> Regards, Fariba Jahanshahi Data Architect (
phone : +01-972-604-9600
|
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
|
|||||||||

Cart








