XML to YAML

Work with XML, YAML, spreadsheet data, and developer utilities locally in your browser.

Converting XML to YAML

Elements become YAML keys, repeated sibling elements become lists, attributes are kept as keys starting with @, and mixed text is stored under #text. <user id="7"><name>Ada</name><role>admin</role><role>dev</role></user> becomes a user: mapping with '@id': '7', name: Ada and a role list of admin and dev.