XML to YAML
Convert XML to YAML format online. Paste XML and get formatted YAML output instantly.
How does XML to YAML conversion work?
XML element tags become YAML keys, and element content becomes YAML values. Nested XML elements become nested YAML objects. Repeated elements with the same tag become YAML arrays.
How are XML attributes handled?
XML attributes are converted to YAML keys prefixed with @. For example, <item id="1"> becomes item: { @id: "1" }.
What XML features are supported?
The converter supports elements, attributes, text content, CDATA sections, nested elements, and repeated elements (arrays).
How are repeated elements converted?
Repeated XML elements with the same tag name are automatically detected and converted to YAML arrays.