XML viewer

View an XML file online

Drop an XML file below and it opens as a tree in this page, without uploading. It names the root element, counts the namespaces, works out whether you have a sitemap or a feed, and when it will not parse it points at the line.

An XML parse error shown with the line, a caret under the column, and the likely cause named as a bare ampersand

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

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
1Choose a file
.
Pick a name, or leave it blank for a random one.
Drag & drop your file
or browse to choose
Documents, images and web pages · up to 150MB
2What is it?optional
3Who is it for? optional,
Snapy Pro · unlimited links, and who opened them Refundable within 7 days