ByteChef LogoByteChef
Components

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

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

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Convert to XML String

Name: stringify

Writes the object/array to a XML string.

Properties

NameLabelTypeDescriptionRequired
typeTypeSTRING
Options OBJECT, ARRAY
The value type.false
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