XML to YAML Converter
Converts XML into readable YAML, keeping attributes and repeated elements.
Convert YAML into well-formed XML. Mappings become elements, lists become repeated elements, and keys starting with @ become attributes.
.yaml or .yml file.converted.xml.&base, *base) and merge keys (<<) are expanded first.'@name' become attributes of their parent, and '#text' becomes its text.null and ~ become empty elements.Input:
server:
'@env': production
host: example.com
ports:
- 80
- 443
tls: trueOutput:
<?xml version="1.0" encoding="UTF-8"?> <server env="production"> <host>example.com</host> <ports>80</ports> <ports>443</ports> <tls>true</tls> </server>
---) is converted.!Ref in CloudFormation templates are not supported.Use a quoted key that starts with @, such as '@id': 42. Quotes are needed because @ can't start a plain YAML key.
The most common causes are tabs used for indentation, inconsistent indent levels, and a colon inside an unquoted value. The error shows the line and column.
They are expanded, so each alias is written out in full in the XML.
No. It is converted in your browser.
Often used together with the YAML to XML Converter.
Converts XML into readable YAML, keeping attributes and repeated elements.
Converts JSON into well-formed, indented XML.
Turns YAML configuration into JSON.