Free tools & games for everyone
Free · No sign-up · No accounts
Format, minify and check XML: find the exact line and column of any mistake, explore it as a tree and test XPath expressions.
Format or check some XML to see its tree.
| Ctrl + Enter | In the XML box: format |
|---|---|
| Enter | In the XPath box: run the expression |
| Tab | Move between boxes and buttons |
<p>A <b>bold</b> word</p>), CDATA sections and anything inside xml:space="preserve" stay exactly as they were.& (write &), a < in text (write <), a missing closing tag, attribute values without quotes, and two root elements.d:, for example //d:item.//title (all titles), //book[@lang='en'] (by attribute), count(//book) (a number), //book[last()] (the last one).The checker follows the well-formedness rules of the XML 1.0 standard: matching tags, quoted attribute values, no duplicate attributes, valid names and characters, known entities, one root element, a correct XML declaration and declared namespace prefixes. It stops at the first problem, as XML readers do. Your browser’s own XML engine runs as a second opinion, and the XPath tester uses it too.
It does not check a file against a DTD or an XSD schema, so a well-formed file can still be the wrong shape for the program that reads it. The tests compare the checker with Python’s expat XML reader on good and broken files, and check that formatting never changes the content.
Nothing is stored or sent.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product