About the XML Viewer tool
XML is still everywhere: sitemaps, RSS and Atom feeds, SOAP responses, Office and Android files, product feeds and configuration. Deeply nested XML is hard to read as plain text. This XML viewer shows it as a tree you can collapse and search, so you can understand the structure quickly.
The tool parses your XML with the browser's built-in DOMParser. Elements are shown with their attributes in different colours, short elements that only contain text are shown on one line, and comments, CDATA sections and processing instructions are displayed too. Collapse any element to hide its children, or use “Expand all” and “Collapse all”. The filter box finds tags, attribute names or values and text anywhere in the document and keeps the matching branches visible.
If the XML is not well-formed, for example because of an unclosed tag or an unescaped ampersand, the viewer shows the parser's error message instead of a broken tree. Counts of elements, attributes and maximum depth help you size up a document. Everything runs locally in your browser.
How to use XML Viewer
- Paste XML into “XML input” or click “Open .xml file” (sitemaps, RSS, SVG and KML also work).
- Browse the tree and click the arrows to fold or unfold elements.
- Type into “Filter tags, attributes, text…” to find what you need.
- Read any parse error message and fix the input if the XML is invalid.
Features
Collapsible element tree
Fold any element, with child counts shown on collapsed nodes.
Attributes, CDATA and comments
Every node type is shown, not just elements and text.
Search filter
Match tag names, attribute names and values, or text content.
Well-formedness check
Parser errors from the browser are displayed clearly.
Document statistics
Element count, attribute count and maximum nesting depth.
When to use it
- Inspect an XML sitemap to check which URLs and lastmod dates it contains.
- Read an RSS or Atom feed to debug a podcast or blog syndication issue.
- Explore a SOAP or legacy API response while writing an integration.
- Look inside SVG, KML or GPX files, which are all XML.
- Check whether an XML file is well-formed before importing it.
Frequently asked questions
Does the viewer validate against an XSD schema?
No. It checks that the XML is well-formed, meaning tags are properly nested and closed. Schema validation is not included.
Why do I get an error about an entity or ampersand?
In XML a bare & must be written as &, and HTML entities like are not defined. Replace them with numeric codes such as  .
Can I open large XML files?
Files up to 20 MB can be opened. Very large documents may take a moment to render as a tree.
Are namespaces supported?
Yes. Prefixed tags and attributes such as g:availability are shown with their prefix.
Is my XML uploaded?
No. Parsing happens in your browser.