XML to XSD Schema Generator Online
Paste a sample XML document and get an XML Schema with types, optional and repeated elements.
XML input
Paste a sample XML document here…XSD output
The result appears here.The schema describes one sample. Check types and occurrences before using it: a value that is always a number in the sample becomes xs:integer, an element that is missing somewhere gets minOccurs="0", and a repeated element maxOccurs="unbounded". Values with leading zeros (IDoc numbers) stay strings.