a apiary.
← All tools

JSON & XML / BROWSER UTILITY

XML Element Counter

Count XML elements, inspect values and compare lists from local XML.

Files are read locally in your browser and are not uploaded.

Up to 1,000,000 characters, 20,000 elements and 100 nesting levels. A separate limit of 100,000 total XML nodes includes text, whitespace and comments. File size limit: 4 MB (UTF-8). Extracted text is limited to 2,000,000 characters across all elements.

Large or complex XML files may temporarily slow your browser, particularly on older devices. Processing stays on your device. Safety limits reduce the risk of freezing, but cannot prevent every browser slowdown or crash.

Extracted values

Good to know

Counts use namespace URI and local name, so prefixes for the same namespace share a count. Values retain their text content, including descendant text and whitespace. Unique and duplicate totals exclude empty or whitespace-only values and compare populated values exactly. Record and identifier detection are suggestions, not schema guarantees.

Example: Two Student siblings suggest Student as the record element. StudentCode can be a possible identifier.