attrkey | Prefix that is used to access the attributes. |
charkey | Prefix 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. |
renderOpts | Rendering options for xmlbuilder-js. |
pretty | Rendering options for xmlbuilder-js. |
indent | whitespace for indentation (only when pretty) |
newline | newline char (only when pretty) |
xmldec | XML declaration attributes. |
xmldec.version | A version number string, e.g. 1.0 |
XML doc.encoding | Encoding declaration, e.g. UTF-8 |
xmldec.standalone | standalone document declaration: true or false |
doctype | optional DTD. Eg. {'ext': 'hello.dtd'} |
headless | omit the XML header. |
allowSurrogateChars | Allows using characters from the Unicode surrogate blocks. |
cdata | wrap text nodes in <![CDATA[ ... ]]> instead of escaping when necessary. Does not add <![CDATA[ ... ]]> if it is not required. |
Comments
Related