Integration Studio Tools — sign up and run every tool. No credit card required.
schema-sample-data · Integration Studio Tool

XSD to XML (Sample)

Generate a sample XML instance from an XSD — every element once, values that fit the type.

Your data never leaves your browser

This tool runs entirely on your computer. What you paste or drop is never uploaded, never stored and never seen by us — close the tab and it's gone. How we know

Sign up to run — no credit card required.

Press Run to see the output. Sign up takes ten seconds — no credit card required.

Worked example

Input
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="order">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="id" type="xs:integer"/>
        <xs:element name="placed" type="xs:date"/>
      </xs:sequence>
      <xs:attribute name="currency" type="xs:string"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
Output
<?xml version="1.0" encoding="UTF-8"?>
<order currency="text">
  <id>1</id>
  <placed>2026-01-31</placed>
</order>

This example is one of XSD to XML (Sample)'s test cases — if the tool stopped producing this output, the build would fail.

Questions

What does the sample contain?
Every declared element once, in schema order, with a value that fits the declared type. Enumerations use their first value, fixed and default values are honoured, and attributes are filled in too.
How are choices and recursion handled?
A choice shows its first branch and says so in a comment — a single sample can't show both. A type that contains itself stops with a comment rather than looping forever.
Will the sample validate against the schema?
Usually, but it is not guaranteed: patterns, numeric ranges, uniqueness and cross-field rules are not enforced by the generator. Run it through a validator before using it as a test payload.
Which schema features are supported?
sequence, all, choice, groups, named and inline complexTypes, simpleType restrictions and enumerations, simpleContent and complexContent extensions, element refs, and attributes. Imports and includes are not fetched — nothing leaves your browser.

Related tools

XSD to XML (Sample) — Flowitz