A little context.
Preserves attributes with an @ prefix and text as #text where needed. DTDs and entity declarations are rejected. XML comments and formatting are not preserved.
Inspecting a small XML response
Convert a short sample first and identify how attributes and repeated elements are represented. An attribute id becomes @id, which differs from a child element named id. Check the resulting shape before writing consumer code.
Interpreting the result and avoiding mistakes
There is no single universal XML-to-JSON mapping. Comments, formatting and mixed-content ordering may not survive conversion. DTD and entity declarations are rejected. Use a dedicated XML workflow when round-trip fidelity or application-specific namespaces matter.
A reproducible workspace example
These are the starting values in the form above. The result below is calculated from these values when the page is built, using the same processing engine as the tool.
- XML
<person id="1"><name>Alex</name></person>
Calculated output
{
"person": {
"name": "Alex",
"@id": "1"
}
}Quick reference
<name>Alex</name> → {"name":"Alex"}How to use this tool
- Enter xml in the workspace above.
- Select Run tool to process your input. Invalid values produce a message next to the form.
- Copy the result or download it as a file. Reset example restores the original input.