YAML to XML Converter
Converts YAML to XML, letting you name the root and the element used for sequence items.
Loading the tool…
How to use this tool
- Paste the YAML you want as XML.
- Set the root element name, and the name to use for each item of a sequence.
- If a schema is waiting at the other end, use the names that schema expects rather than the defaults.
- Select Convert to XML and download the result.
What yaml to xml does
XML needs two names that YAML does not have. It needs a single root element, where a YAML document can be a mapping, a sequence or a bare scalar, and it needs a name for each item of a sequence, where YAML items are anonymous. Both are settings on this page rather than something guessed at, because a name invented for you will not match the schema on the other end.
The usual reason to do this is an older system that speaks XML sitting downstream of tooling that speaks YAML. If a schema is involved, set the root and item names to the ones it expects before converting; renaming elements afterwards across a large document is far more annoying than setting two fields here.