Build
Convert an object to an XML string.
Input
Field | Definition | Type | Required |
---|---|---|---|
object | object to be converted into an XML string. | Object | TRUE |
options | |||
rootName | Name of the root element of the XML document. | String | FALSE |
doctype | Doctype of the XML document. | String | FALSE |
renderOptions | |||
pretty | Determines whether the XML document will be rendered into “pretty” style; options are True and False. | Boolean | FALSE |
indent | Used when the pretty field is set to True; this value specifies the character(s) to use as indentation characters in the XML document. | String | FALSE |
newline | Used when the pretty field is set to True; this value specifies the character(s) to use as newline character(s) in the XML document. | String | FALSE |
declaration | |||
version | Determines the version that’s added to the XML declaration; default is 1.0 ; common values are 1.0 and 1.1 , although any 1.x values are accepted. |
String | FALSE |
encoding |
Adds a specified character encoding to the XML declaration; for example, |
String | FALSE |
standalone | Adds a standalone attribute to the XML declaration; if set to False, it adds the standalone attribute to the XML declaration as standalone="no" ; if set to True, it adds the standalone attribute to the XML declaration as standalone="yes" . |
Boolean | FALSE |
Output
Field | Definition | Type |
---|---|---|
xml | Assembled XML document. | String |