- From: Shirish Kulkarni <shirish_kul@yahoo.com>
- Date: Tue, 4 Mar 2003 02:34:42 -0800 (PST)
- To: xmlschema-dev@w3.org
Hi, I am facing the following problem while building a data model. I would like to have an element to have a type, which is a choices between number of types. a.xml => <Node> <Sub1> <Sub2> <Sub3> </Node> b.xml => <Node> <Sub4> <Sub5> </Node> In my schema I have c.xsd => <complexType name="Type1"> <xsd:sequence> <xsd:element name="Sub1" type="xsd:string"/> <xsd:element name="Sub2" type="xsd:string"/> <xsd:element name="Sub3" type="xsd:string"/> </xsd:sequence> </complexType> <complexType name="Type2"> <xsd:sequence> <xsd:element name="Sub4" type="xsd:string"/> <xsd:element name="Sub5" type="xsd:string"/> </xsd:sequence> </complexType> I would like to have Node to be of Type1 OR Type2. As you can see, there is no overlap between Type1 and Type2. Is it feasible ? How ( can we have choice keyword for Type ) ? With best regards, Shirish __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Received on Tuesday, 4 March 2003 05:35:14 UTC