XML → YAML
Convert data in XML format to YAML format. As in the example below, paste XML on the left and the YAML result appears instantly on the right.
Example
XML
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<row>
<id>1</id>
<name>Ada</name>
<role>admin</role>
</row>
<row>
<id>2</id>
<name>Linus</name>
<role>editor</role>
</row>
</rows>YAML
- id: 1
name: Ada
role: admin
- id: 2
name: Linus
role: editorHow to Convert
- Select XML as the source format and YAML as the target format.
- Paste your XML data into the input box on the left.
- Copy or download the YAML result generated on the right.
Notes
- Every conversion happens inside the browser, and the data you enter is never sent to a server.
- XML conversion uses a convention that maps attributes to @name, text to #text, and repeated elements to arrays.