Build

Convert an object to an XML string.

Input

Field Definition Type Required

object

The object to be converted into an XML string.

Object

TRUE

options

rootName

Name of the root element of the XML document.

Text

FALSE

doctype

The document type declaration of the XML document.

Text

FALSE

renderOptions

pretty

Determines whether the XML document should be rendered into "pretty" style. The options are True and False.

True/False

FALSE

indent

Used when the pretty field is set to True. This value specifies the characters to use as indentation characters in the XML document.

Text

FALSE

newline

Used when the pretty field is set to True. This value specifies the characters to use as newline characters in the XML document.

Text

FALSE

declaration

version

Determines the version that's added to the XML declaration. The default is 1.0. Common values are 1.0 and 1.1, although any 1.x values are accepted.

Text

FALSE

encoding

Adds a specified character encoding to the XML declaration, for example, UTF-8.

Text

FALSE

standalone

Adds a standalone attribute to the XML declaration.

  • If this is set to False, it adds the standalone attribute to the XML declaration as standalone="no".

  • If this is True, it adds the standalone attribute to the XML declaration as standalone="yes".

True/False

FALSE

Output

Field Definition Type

xml

The assembled XML document.

Text

Related topics

Functions

Workflow elements