Generador XML → XSD
Genera definiciones de esquema XSD desde XML.
A best-effort schema inferred from one sample. Types default to xs:string.
Overview
Paste an XML document and get a starting-point XSD (XML Schema Definition).
The generator walks the element tree, creates one xs:complexType per element
name, lists child elements in an xs:sequence, declares attributes as
xs:string, and marks children that repeat under the same parent with
maxOccurs="unbounded". Useful when you inherit an XML feed with no schema
and need validation or code generation to start somewhere.
How to use
- Paste your document into the XML area.
- Read the generated schema from the XSD (inferred) output — it regenerates on every keystroke.
- If the input is malformed, an
Invalid XMLerror is shown instead.
Examples
<books><book id="1"><title>A</title></book></books>produces a schema withbooksTypeandbookTypecomplex types, atitleelement typedxs:string, and anidattribute declared asxs:string.
Notes
Elements sharing a tag name are assumed to share one type, and namespaces are not analyzed. Treat the output as scaffolding: tighten data types, occurrence constraints, and enumerations against your real contract.