Check it here, before you send it
Drop an XML file here, , or paste it below.
Nothing uploads. The file is parsed in your browser.
XML is stricter than HTML, and that is the whole problem
A browser will forgive almost anything in HTML. XML forgives nothing, which is why a file that looks fine fails to parse:
| What breaks it | The rule |
|---|---|
Tea & biscuits |
a bare & must be written & |
<item> with no </item> |
every element must close |
| two top level elements | there must be exactly one root |
<Item> closed with </item> |
tag names are case sensitive |
Press Load a broken sample and you get the first one, which is by far the most common: an ampersand typed straight into text. The viewer prints the line, marks the column, and names the cause.
What the summary tells you
sitemap.xml · Well formed · root <urlset> · looks like a sitemap
· 1,204 elements · 0 attributes · nesting 3 deep · 1 namespace
- The root element, which is the fastest way to tell what a mystery file is.
- What the format actually is, read from the namespace. A sitemap, an RSS or Atom feed, an SVG and an Excel sheet all announce themselves that way, so the viewer names them rather than making you guess.
- Elements, attributes and depth. Depth is usually the answer to why a script cannot find the node it wants.
- Namespaces and CDATA blocks, counted. A file with three namespaces is a file where a plain tag name lookup will fail.
Elements collapse, so a 1,200 URL sitemap stops being a wall of text.
What this will not do
It will not validate against a schema. Well formed and valid are different things: this checks the first, and a DTD or XSD check is the second. A file can be perfectly well formed and still wrong for its purpose.
It will not pretty print or reformat the source, and it will not edit anything.
It will not apply an XSLT stylesheet, so a file that is designed to be transformed before being read will show as its raw structure.
| Limit | Value |
|---|---|
| Characters read in this viewer | 400,000 |
| Child elements drawn per node | 400 |
| One uploaded file | 150MB |
| Free storage | 1GB |
