XML structure inspector

Check XML structure and count elements, attributes and depth.

Text Stateless

Maximum input length per field: 65536 Unicode code points. See the operation limits in the instructions.

Quick guide

Try it with your own data when you’re ready.

Try an example

You enter

XML document
<root a="1"><child/></root>

You get

Root element tag
root
Element count
2
Attribute count
1
Maximum element depth
2
Distinct namespace URIs in use
0
How it works & limits

Parses text without fetching resources. Documents containing DOCTYPE/ENTITY markers are rejected.

Limits: 65536 code points, 10000 elements and depth 64, counting the root as 1. Attributes exclude xmlns declarations; namespace count means namespaces used by elements/attributes.

Comments are not elements. This is not schema validation.