OptionalattributeDefines the name of the node to use for attributes in the XML string.
The default is $ for attributes groups.
For example { attributePrefix: '@attributes' } with the following JSON:
"tag": {
"@attributes": {
"attr": "value"
}
}
Will result in the following XML:
<innerTag attr="value" />
OptionalheadlessWhen true the XML string will be without a XML declaration.
OptionalindentThe indent prefix to use for the XML indentation. When not set the XML tags are not indented and no new lines are added. When set to a number the XML string will be indented with the specified number of spaces or the specified string.
OptionalstripWhen true empty nodes are removed when stringifying the XML.
OptionaltrimWhen true the parser will ignore attributes and only parse the node name and value.
Options for controlling XML string conversion behavior.
XMLStringfyOptions