Paste any XML and instantly visualise it as a collapsible, colour-coded node tree. Inspect elements, attributes, text content, navigate with XPath-style paths, and copy any value in one click.
An XML Tree Viewer parses raw XML text and renders it as an interactive, hierarchical node tree — much like a file explorer, but for markup data. Every element becomes a collapsible branch, attributes are shown inline, and text content is clearly labelled. This makes it far easier to understand deeply nested XML documents than staring at raw angle brackets.
This tool processes your XML entirely in your browser using the built-in DOMParser API. Nothing is sent to any server — your data stays private.
pom.xml, Android AndroidManifest.xml, Spring contexts, and MSBuild files are easier to audit as a tree.&, <, and > must be escaped as entities. The error message shown will indicate the line and column of the problem. Common issues include missing closing tags, unescaped ampersands in URLs, and incorrect nesting./bookstore/book[2]/title. This is an XPath-style notation that describes exactly where in the document hierarchy the node lives. You can use these paths in XSLT stylesheets, XPath queries, or libraries like lxml, libxml2, and Java's JAXP to programmatically select that node.<title>Hello</title>. An attribute is a name-value pair inside an opening tag that describes a property of that element — e.g. category="fiction". In the tree view, elements appear as collapsible rows in blue, while attributes are shown inline in amber/orange.