XML Schema (XSD) Generator

Create an XML schema definition (XSD) from XML

Features

Supports 3 XSD designs

Choose from three design styles such as Russian Doll

Infer data types from values

Analyze numbers, dates, and more to automatically convert to the appropriate xs type

Analyze and reflect occurrence counts

Automatically add maxOccurs to repeating elements

Supports both strings and files

Two methods: paste XML or load an .xml file

How to use

1

Select the input method tab

Paste XML directly in the string tab, or load an .xml file in the file tab

2

Specify the XSD design type

Select the output format from Russian Doll, Salami Slice, or Venetian Blind

3

Select the content type

Switch between Smart, which infers types from values, or all elements as the string type

4

Run with the generate button

Pressing the button runs the analysis and instantly displays the XSD on the right

5

Save and copy the XSD

Download it as schema.xsd from the output field, or copy it

Use cases

Writing XML specifications

Derive a schema definition from a sample XML and use it to document the data structure

Preparing for data validation

Prepare a validation schema for checking the validity of the XML you receive

Grasping the structure of API integrations

Analyze an external API's XML response to visualize its element and type structure

Learning XSD syntax

Compare the output of the three design styles to deepen your understanding of schema notation

Safety and privacy

Runs entirely in your browser

Your input data is processed only within your browser and is never sent externally.

Processing only in your browser

Generating the XSD is processed entirely within your browser, and input data is not sent to any server.

Communications encrypted with HTTPS

Page loading is also encrypted by TLS, and content cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

No automatic saving of results

The generated XSD and input suggestions are not stored on the server.

Related Tools