XML Tree Viewer
Explore XML as a collapsible tree with attributes, run XPath queries, copy the XPath of any element and see element, depth and namespace statistics.
Tool
About this tool
About XML Tree Viewer
Big XML files – product feeds, sitemaps, SOAP answers, invoices, config files – are hard to read as text. Paste or open the file to see it as a tree you can expand step by step, with attributes and values. Click any element to get its XPath, run your own XPath query to find nodes, and see how many elements, attributes, levels and namespaces the document has. Invalid XML is reported with the parser’s message.
How it works
Example
How to use this tool
- Paste XML or choose a file.
- Expand the tree and click elements to get their XPath.
- Run XPath queries such as //product[price>100]/name.
Frequently asked questions
How big can the file be?
Files of tens of MB work; the tree only builds the parts you open, so it stays fast.
Do namespaces work in XPath?
Prefixes declared on the root element can be used in queries.
Is my data uploaded?
No. Everything is processed in your browser and stays on your device.
Are my files uploaded by the XML Tree Viewer?
No. The XML Tree Viewer reads your files in your browser, so your data stays on your device. Very large files may be slow on older phones.