Converts YAML into XML.
YAML to XML converts a YAML mapping into a clean, two-space-indented XML document right in your browser. Paste any YAML object and instantly get the equivalent XML, with nested mappings, arrays, and scalar values mapped to elements automatically. It is handy whenever a config or API expects XML but you would rather author it in concise, readable YAML.
No. The conversion runs entirely in your browser using client-side JavaScript, so your YAML never leaves your device and nothing is uploaded or stored remotely.
The input must be a top-level YAML mapping (an object). Top-level lists, scalars, numbers, or null documents are rejected with the error 'YAML must be a top-level mapping.'
A list value does not produce a wrapper element. Instead the parent key is repeated for each item, so three items under 'list' produce three separate <list> elements.
Yes. Keys prefixed with @_ become attributes on their element, and a #text key sets the element's text content, letting you build tags like <item id="5">hello</item>.
Characters like <, >, & and quotes are XML-escaped automatically, null values render as self-closing elements such as <nil/>, and the output is indented with two spaces.