diff --git a/README.md b/README.md index be7b83f4..f551ea4e 100644 --- a/README.md +++ b/README.md @@ -333,11 +333,13 @@ Possible options are: * `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` (default `{ 'pretty': true, 'indent': ' ', 'newline': '\n' }`): + * `renderOpts` (default `{ 'pretty': true, 'indent': ' ', 'newline': '\n', 'allowEmpty': false, 'spacebeforeslash': '' }`): Rendering options for xmlbuilder-js. * pretty: prettify generated XML * indent: whitespace for indentation (only when pretty) * newline: newline char (only when pretty) + * allowEmpty: allow empty tags like instead of self-closing them like (only when pretty) + * spacebeforeslash: add the given space character(s) into self-closed tags like (only when pretty) * `xmldec` (default `{ 'version': '1.0', 'encoding': 'UTF-8', 'standalone': true }`: XML declaration attributes. * `xmldec.version` A version number string, e.g. 1.0