Hi,
I have a complex type which has to have its content in the xml instance
document as shown below :
<CONFIG_INFO>
<country resourceNumber="20004" fieldSecurity="5, 5">Great
Britain</label>
</CONFIG_INFO>
For this, I have defined the schema as below :
<xs:complexType name="AttributesType" mixed="true">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="resourceNumber" type="xs:string"
default="20004"/>
<xs:attribute name="fieldSecurity" type="xs:string" default="5,
5"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="CONFIG_INFO">
<xs:complexType>
<xs:all>
<xs:element name="country" type="AttributesType"/>
</xs:all>
</xs:complexType>
</xs:element>
But I also have defined a named complex type for the text contained in the
element as shown below :
<xs:complexType name="COUNTRY_TYPE">
<xs:choice>
<xs:element name="CT_UK" fixed="Great Britain" type="xs:string"/>
<xs:element name="CT_GERMANY" fixed="Germany" type="xs:string"/>
</xs:choice>
</xs:complexType>
How do I asscoiate the text portion of the element "country" so that it
contains one of the defined values in "COUNTRY_TYPE"?
Thanks and regards,
Kanchana