How to format XML
- Paste your XML: a sitemap, RSS feed, SVG, config file, SOAP message or any other XML.
- Choose Format to indent it with one element per line, or Minify to put it on one line.
- If the XML isn’t well-formed, the error tells you which line to fix.
Common XML errors
- A tag isn’t closed: every
<item>needs a</item>, or write it as<item/>. - A bare & or < in text: write
&and<, or wrap the text in<![CDATA[ … ]]>. - More than one root element: wrap everything in a single outer element.
- Unquoted attributes:
id=5must beid="5".