How to use the xml viewer
- Paste your XML into the text area of this xml viewer.
- The tree table appears instantly below showing Depth, Node, Attributes, and Text for each node.
- If the XML is not well-formed, a red error message shows the line and column of the first problem.
- Use the table to explore structure, verify nesting, and check attribute values.
How the XML parser works
The tool uses a hand-written state-machine tokenizer that scans the input character by character while tracking line and column numbers. When it encounters a '<' it branches: '