Root element name to be used in case explicitRoot is false or to override the root element name. (default root or the root key name)
Rendering options for xmlbuilder-js.pretty: prettify generated XML. (default { 'pretty': true, 'indent': ' ', 'newline': '\n' })
Whitespace for indentation (only when pretty)
XML declaration attributes (default { 'version': '1.0', 'encoding': 'UTF-8', 'standalone': true }). xmldec.version - A version number string, e.g. 1.0 xmldec.encoding - Encoding declaration, e.g. UTF-8 xmldec.standalone - Standalone document declaration: true or false
Newline char (only when pretty)
Optional DTD. Eg. {'ext': 'hello.dtd'} (default null)
Omit the XML header. Added in 0.4.3 (default: false)
Allows using characters from the Unicode surrogate blocks (default: false)
Wrap text nodes in
<![CDATA[ ... ]]>
Does not add
<![CDATA[ ... ]]>
Allows using characters from the Unicode surrogate blocks (default: false)
Wrap text nodes in
Wrap text nodes in
<![CDATA[ ... ]]>
Does not add
<![CDATA[ ... ]]>
Optional DTD.
Optional DTD. Eg. {'ext': 'hello.dtd'} (default null)
Omit the XML header.
Omit the XML header. Added in 0.4.3 (default: false)
Whitespace for indentation (only when pretty)
Newline char (only when pretty)
Rendering options for xmlbuilder-js.pretty: prettify generated XML.
Rendering options for xmlbuilder-js.pretty: prettify generated XML. (default { 'pretty': true, 'indent': ' ', 'newline': '\n' })
Root element name to be used in case explicitRoot is false or to override the root element name.
Root element name to be used in case explicitRoot is false or to override the root element name. (default root or the root key name)
XML declaration attributes (default { 'version': '1.0', 'encoding': 'UTF-8', 'standalone': true }).
XML declaration attributes (default { 'version': '1.0', 'encoding': 'UTF-8', 'standalone': true }). xmldec.version - A version number string, e.g. 1.0 xmldec.encoding - Encoding declaration, e.g. UTF-8 xmldec.standalone - Standalone document declaration: true or false
NodeJS/xml2js Builder Options