XSD/XML Schema Generator

Generates an XSD (XML Schema) from a XML file. Simply copy-paste your XML document and let the generator figure out the rest!

The generator uses a Russian-Doll approach. The Russian-Doll design mimics the document structure meaning that elements within other elements are declared locally instead of global-reusable scope.

The generator will not try to generate xs:enumeration since it's too error prone. Also, instead of generating xsd:string types, the generator will try to use a 'smart' approach to figure out the data type.

*Files bigger than 1 meg will be formatted to a new window.

Option 1: Copy-paste your XML document here
Option 2: Or type in the URL to your XML file
Force output to new window: