How JSON maps to XML
Objects become XML elements, arrays become repeated child elements, and simple values become text content.
The root element option controls the wrapper name around the converted document, while the item element option is used for top-level array items.
- Use @-prefixed keys when you need XML attributes.
- Use #text when an element needs explicit text content alongside attributes.
- Enable pretty print for readable XML or disable it for compact output.