Optional
attributeDefines the prefix to use for attributes in the XML string.
The default is @
for attributes groups.
Optional
headlessWhen true the XML string will be without a XML declaration.
false
Optional
indentThe 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.
false
Optional
stripWhen true empty nodes are removed when stringifying the XML.
Optional
trimWhen true the parser will ignore attributes and only parse the node name and value.
\r\n
is normalized to \n
true
Options for controlling XML string conversion behavior.
XMLStringfyOptions