XSD complexType to simple type
Hi all!
Please help me with my problem.
I have two XSD files
First contain complex type description - metadata_types.xsd
...
<xs:complexType name="NUM">
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:attribute name="TYPE" use="optional"/>
<xs:attribute name="derived" use="optional"/>
<xs:attribute name="readonly" use="optional"/>
<xs:attribute name="required" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
...
Second contain members with types from my first files - metadata_schema.xsd
...
<xs:import namespace="http://www.xxx.com/metadata_types" schemaLocation="metadata_types.xsd"/>
...
<xs:element name="ACCOUNT">
<xs:complexType>
<xs:sequence>
<xs:element name="Account_Num" type="metadata_types:NUM" minOccurs="0"/>
...
How can I convert my second file in corresponding simple types ?
...
<xs:import namespace="http://www.xxx.com/metadata_types" schemaLocation="metadata_types.xsd"/>
...
<xs:element name="ACCOUNT">
<xs:complexType>
<xs:sequence>
<xs:element name="Account_Num" type="xs:integer" minOccurs="0"/>
...