From Angle Brackets to Tables: Turning XML Into TOML
You inherited a config file written in XML, and your new setup (Cargo, pyproject.toml, Hugo) wants TOML. Converting turns nested elements into tables and repeated elements into arrays of tables, leaving you with something a person can edit without hunting for closing tags.
XML carries things TOML has no slot for: attributes, namespaces, comments, mixed text and child elements, and the ordering of differently named siblings. Those get flattened into ordinary keys or lost. Every XML value is plain text, so check that numbers, booleans and dates came out with the types you expect before you ship it.
What are XML and TOML?
XML: tagged structured data common in business systems
TOML: fmt.toml
How it works
- Choose your XML file.
- Check that TOML is selected and press convert.
- Download your new file. We delete both files automatically.
