M
mre
Is there a program that will flatten an XSD, that is, will transform...
<xsd:element name="name" type="nameType"/>
<xsd:complexType name="nameType">
<xsd:sequence>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="surname" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
....into...
<xsd:element name="name">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="surname" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
.... It should also handle includes/imports, merge complexContent, and
what have you?
I want to be able to take multiple XSDs, most of which contain just
type information in various namespaces, and turn it all it one big
file, one namespace.
If there is no program that can do this I'll write one myself. However,
as I'm an XSD beginner; how does complexContent and group merge? I'm
guessing that, other than these two, the rest is as straight-forward as
my example above - is there anything I need to watch out for?
Thank you for any help,
Regards,
MRe
<xsd:element name="name" type="nameType"/>
<xsd:complexType name="nameType">
<xsd:sequence>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="surname" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
....into...
<xsd:element name="name">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="surname" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
.... It should also handle includes/imports, merge complexContent, and
what have you?
I want to be able to take multiple XSDs, most of which contain just
type information in various namespaces, and turn it all it one big
file, one namespace.
If there is no program that can do this I'll write one myself. However,
as I'm an XSD beginner; how does complexContent and group merge? I'm
guessing that, other than these two, the rest is as straight-forward as
my example above - is there anything I need to watch out for?
Thank you for any help,
Regards,
MRe