dgis / xsddiagram

XSD Diagram is a free Xml Schema Definition (XSD) diagram viewer for Windows written in c# Framework.NET 2.0
http://regis.cosnier.free.fr/?page=XSDDiagram&nomenu
GNU General Public License v2.0
225 stars 52 forks source link

Create barebones XSD from loaded data #32

Open RemiArbache opened 3 years ago

RemiArbache commented 3 years ago

It would be nice to be able to create barebones xsd files from the tags loaded in the workspace. I work with Java-class defining XSD where the tags are polluted and dispersed and look like this :

<xs:complexType name="Foo">
    <xs:annotation>
        <xs:documentation></xs:documentation>
    </xs:annotation>
    <xs:sequence>
        <xs:element name="Bar" type="Bar" minOccurs="1" maxOccurs="10">
        <xs:annotation>
            <xs:documentation></xs:documentation>
        </xs:annotation>
        </xs:element>
    </xs:sequence>
    <xs:attribute name="schemaVersion" use="required" fixed="1.0"/>
</xs:complexType>

And I would like to generate an XSD file that looks like this:

<Foo>
    <Bar>
    </Bar>
</Foo>

Thank you