6 tools
XML Tools and Converters
XML is more expressive than JSON in ways that matter for documents: it distinguishes attributes from child elements, supports namespaces so two vocabularies can coexist in one file, preserves the order of mixed text and elements, and has mature schema languages for validation.
That expressiveness makes conversion to JSON genuinely lossy rather than merely verbose. JSON has no notion of an attribute, so attributes must be encoded as ordinary keys with a prefix. It has no namespaces, so prefixes become part of the key name. And mixed content, text interleaved with child elements, cannot be represented at all, because JSON object keys have no position relative to text.
XML also carries real security weight. A document can define entities that reference external files or URLs, or that expand exponentially. Any XML parser handling untrusted input must refuse to resolve external entities and cap expansion, or parsing a hostile document becomes a file read.
XML tools
Converters
- XML to JSON
Turn XML into JSON, with attributes and text nodes preserved.
- JSON to XML
Turn JSON into well-formed XML with a configurable root element.
- CSV to XML
Turn CSV rows into XML elements.
- XML to CSV
Extract a table from repeated XML elements.
- XML to YAML
Turn XML into readable indented YAML.
- YAML to XML
Turn YAML into well-formed XML.
Worth understanding first
The concepts that come up most often when working with XML.