Skip to content

XML Helper

Converts between XML string and object/array.

Categories: helpers

Type: xmlHelper/v1


Actions

Convert from XML String

Name: parse

Converts the XML string to object/array.

Properties

NameLabelTypeControl TypeDescriptionRequired
sourceSourceSTRINGTEXTThe XML string to convert to the data.true

Output

Type: OBJECT

JSON Example

{
"label" : "Convert from XML String",
"name" : "parse",
"parameters" : {
"source" : ""
},
"type" : "xmlHelper/v1/parse"
}

Convert to XML String

Name: stringify

Writes the object/array to a XML string.

Properties

NameLabelTypeControl TypeDescriptionRequired
typeTypeSTRING
Options OBJECT, ARRAY
SELECTThe value type.null
sourceSourceOBJECT
Properties {}
OBJECT_BUILDERThe object to convert to XML string.true
sourceSourceARRAY
Items []
ARRAY_BUILDERThe array to convert to XML string.true

Output

Type: STRING

JSON Example

{
"label" : "Convert to XML String",
"name" : "stringify",
"parameters" : {
"type" : "",
"source" : [ ]
},
"type" : "xmlHelper/v1/stringify"
}