Paste your XML and the parser produces structured JSON, turning elements into keys and repeated tags into arrays automatically.
Element attributes are preserved in the JSON output, typically under a dedicated key so no information is lost.
Repeated sibling elements with the same name are collected into a JSON array to reflect the list structure.
The input must be well-formed XML; malformed markup produces a parse error pointing to the problem.