XML Tree Viewer

Browse XML as a tree, copy XPath, and lightly edit attribute/text values.

All processing on this page runs locally in your browser unless noted otherwise.

Build the tree to see stats.

Click a node to highlight source. Double-click attribute/text to edit. Hover for XPath copy.

No tree yet. Click “Build tree”.

How to use

  1. Paste XML on the left, then Build tree.
  2. Click nodes to highlight the matching source snippet.
  3. Copy XPath or double-click editable values to sync back.

FAQ

Can I edit the tree?

Attribute, text, comment and CDATA values can be edited; structure edits are limited in V1.

How accurate is source highlight?

It searches for a best-effort snippet match in the editor.

Related tools