ByteChef LogoByteChef
Components

XML Helper

Converts between XML string and object/array.

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

NameLabelTypeDescriptionRequired
sourceSourceSTRINGThe XML string to convert to the data.true

Example JSON Structure

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

Output

Type: OBJECT

Convert to XML String

Name: stringify

Writes the object/array to a XML string.

Properties

NameLabelTypeDescriptionRequired
typeTypeSTRING
Options OBJECT, ARRAY
The value type.null
sourceSourceOBJECT
Properties {}
The object to convert to XML string.true
sourceSourceARRAY
Items []
The array to convert to XML string.true

Example JSON Structure

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

Output

Type: STRING

On this page