attrkeyPrefix that is used to access the attributes.
charkeyPrefix that is used to access the character content.
rootName(default root or the root key name): root element name to be used in case explicitRoot is false or to override the root element name.
renderOptsRendering options for xmlbuilder-js.
prettyRendering options for xmlbuilder-js.
indentwhitespace for indentation (only when pretty)
newlinenewline char (only when pretty)
xmldecXML declaration attributes.
xmldec.versionA version number string, e.g. 1.0
XML doc.encodingEncoding declaration, e.g. UTF-8
xmldec.standalonestandalone document declaration: true or false
doctypeoptional DTD. Eg. {'ext': 'hello.dtd'}
headlessomit the XML header.
allowSurrogateCharsAllows using characters from the Unicode surrogate blocks.
cdatawrap text nodes in <![CDATA[ ... ]]> instead of escaping when necessary. Does not add <![CDATA[ ... ]]> if it is not required.
Comments