XML Editor

Indent
XML
384 chars
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
  <book category="fiction">
    <title lang="en">The Hobbit</title>
    <author>J.R.R. Tolkien</author>
    <year>1937</year>
    <price>14.99</price>
  </book>
  <book category="tech">
    <title lang="en">Clean Code</title>
    <author>Robert C. Martin</author>
    <year>2008</year>
    <price>39.99</price>
  </book>
</bookstore>
XML

XML → JSON conventions

Attributes become @-prefixed keys (like @id), text uses a #text key when an element also has attributes or children, and repeated elements turn into an array. Everything is processed locally.