WORKED CASE · SYNTHETIC TEST DATA
Separate attributes from text
Attributes and child text need distinct keys in a JSON mapping.
Input and settings
<item id="7">Ada</item>Run and interpret
Convert the sample. id becomes @id and text becomes #text; both values remain strings.
Expected output
"@id": "7"
"#text": "Ada"Scope and possible misuse
No numeric or boolean types are inferred. DTDs and entity declarations are rejected; mixed content needs separate semantic review.