Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSD complexType to simple type

Aleksey MovchanyukFeb 8 2012 — edited Feb 9 2012
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"/>
...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2012
Added on Feb 8 2012
6 comments
532 views