younifyd
Menu

CSV to XML

Convert CSV to XML

Use it in a workflow

  1. Add a step and choose the Data Converter connector.
  2. Pick the CSV to XML action (under helper).
  3. Fill in the fields below, then reference the result from later steps as {{csvToXml.response.data}}.

Fields

contentstringrequired

The CSV to convert, e.g. {{downloadFile.response.data.content}}.

inputEncodingstring

Choose base64 for content from the FTP, SFTP or File connectors.

One oftextbase64Default "text"

csvDelimiterstring

The column separator.

Default ","

expandDotColumnsboolean

Turn columns like address.city or items.0.sku into nested data.

Default false

rootElementstring

The outer element, used when the data doesn't already have a single top-level key.

Default "root"

itemElementstring

The element each entry of a top-level list becomes.

Default "item"

xmlDeclarationboolean

Start with <?xml version="1.0" encoding="UTF-8"?>.

Default true

prettyboolean

Indent the output.

Default true

returnAsstring

text: the converted text. base64: for uploading with FTP, SFTP or File.

One oftextbase64Default "text"

Examples

CSV to XML

Convert CSV to XML

json
{
  "content": "id,sku\n1,A",
  "rootElement": "Orders",
  "itemElement": "Order"
}

Need more? See the Data Converter guide for connection setup and behaviour shared by every action.

Was this page helpful?