Just Enter your XML in the above input textarea, and hit the below button, we will process it on our server to convert it to XSD.
We are first trying to validate your XML before converting it into XSD, so it better to enter valid XML for proper output.
Suppose you have below sample XML
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Then output of above XML will be:
<?xml version='1.0' encoding='utf-16'?>
<xs:schema attributeFormDefault='unqualified'
elementFormDefault='qualified'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='note'>
<xs:complexType>
<xs:sequence>
<xs:element name='to'
type='xs:string' />
<xs:element name='from'
type='xs:string' />
<xs:element name='heading'
type='xs:string' />
<xs:element name='body'
type='xs:string' />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>