Hi, Thanks for your help. Is there any way of restricting the subelements of an element type. for example in the complexType SLR, I have an element viewFinder of type Viewer.( Viewer is of complexType with choice of elements "ThroughTheLens" and "WindowOnTopOfCamera" ).I want the element viewFinder to contain a subelement "ThroughTheLens"only. <xsd:complexType name="SLR"> <xsd:complexContent> <xsd:restriction base="camera:Camera"> <xsd:sequence> <xsd:element name="lens" type="Lens" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="viewFinder" type="Viewer" fixed="ThroughTheLens" minOccurs="1" maxOccurs="1"/> <xsd:element name="body" type="Body" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:restriction> </xsd:complexContent> </xsd:complexType> I found that assigning a fixed value to viewFinder as above is not a valid way of doing this. is there any possibility of doing so?. I need ur help. Thank u, V.Gayathri. Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.Received on Friday, 12 March 2004 02:59:14 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:42 GMT