Viewers2 min read

How to View an XML File as a Readable Tree

Open XML files (RSS feeds, sitemaps, invoices, config files) as a formatted, collapsible tree of elements, attributes and text. Private, in your browser.

By the ZapMorph team

XML Viewer
On this page
  1. How to view XML with ZapMorph
  2. Common uses
  3. Reading XML quickly
  4. Viewer vs browser vs editor
  5. Need the data somewhere else?
  6. Troubleshooting
  7. Summary
  8. FAQs

Just want it done?

Open the XML Viewer — it runs in your browser and nothing is uploaded.

Open the tool

XML is everywhere behind the scenes: sitemaps, RSS feeds, e-invoices, Office files, Apple .plist settings, SVG graphics. Opened in a text editor, it's an indentation nightmare. A tree view makes the structure obvious.

How to view XML with ZapMorph

1. Open the XML viewer

Go to the XML viewer.

XML viewer page
The XML viewer

2. Drop in the file

Drop the file on the box. Elements, attributes and text are laid out as an indented tree you can fold and unfold.

An XML file shown as a collapsible tree
XML as a tree

Common uses

  • SEO: check your sitemap.xml lists the right pages, with sensible lastmod dates.
  • Feeds: see what's in an RSS, Atom or Google Shopping product feed.
  • Mac settings: read a .plist file.
  • E-invoices: inspect UBL, Peppol or Factur-X invoice XML before sending it.
  • SVG graphics: see the shapes and paths an icon is made of.
  • Office files: unzip a .docx or .xlsx and inspect its internal XML.

Reading XML quickly

TermMeaningExample
ElementA named block<url>…</url>
AttributeA setting on an element<price currency="EUR">
TextThe content inside19.99
NamespaceA prefix showing which standard a tag belongs to<cbc:ID>

Viewer vs browser vs editor

  • Browsers show raw XML, often as a flat tree with no folding, and some refuse local files.
  • Text editors show everything, but long files are hard to navigate.
  • The XML viewer gives you a foldable tree in a second, without installing anything.

Need the data somewhere else?

Troubleshooting

"Not well-formed" or a parsing error. A tag isn't closed, there's an unescaped &, or there's text before the <?xml line. Fix it in a text editor and try again.

Binary .plist files. Some Mac settings files are stored in a binary format. Convert with plutil -convert xml1 file.plist in Terminal first.

Summary

The XML viewer makes any XML file readable at a glance.

FAQs

Which files can it open?

.xml, .rss, .atom, .svg, .plist, .xsd and .xsl.

Are attributes shown?

Yes. Elements, attributes and text are all laid out in the tree.

Is the file uploaded?

No, it's read in your browser.

Can I fold and unfold sections?

Yes. Collapse the parts you don't need and expand the ones you're interested in.

Can I edit the XML?

No, it's a viewer. Edit in a text editor such as VS Code, then check the result here.

What if the XML is invalid?

Broken XML, such as a missing closing tag, can't be shown as a tree. You'll see an error instead, which is a quick way to find out the file is damaged.

Try the XML Viewer

Free to start, no install, and your files never leave your device.

Open the tool

Related guides

All guides