XML Path Finder
Lists every distinct element and attribute path in a document, with an occurrence count and the first value found at each.
Loading the tool…
How to use this tool
- Paste the document you want to explore.
- Select List paths.
- Compare each occurrence count against the number of records: anything lower is an optional field your code has to handle as missing.
What xml path finder does
When you are handed an unfamiliar XML file the first question is what is actually in it, and the second is what to write in an XPath expression to reach a particular value. This tool answers both by walking the whole document and listing every distinct path once, with the number of times it occurred and the first value it found there.
The occurrence count is the useful part. A path that occurs as many times as the row element is a field every record has; a path that occurs a handful of times is optional, and any code reading the file has to cope with it being missing. The paths are written in ordinary XPath location syntax and ignore namespaces, so a document using prefixes will need those added by hand.