Convert CSV to XML

Converts CSV text into an XML document. Each row becomes an XML element, with options for separator and headers.

Convert CSV to XML
CSV
Show advanced options
Field separator (delimiter). Default = 'Auto-detect separator'▾
Auto-detect quote delimiter?
CSV has headers?
Automatically detect the header line based on content. Default = true
Use specific row index as header. Ignored if Auto-detect is true. D…
Auto-detect field types?
Scans rows to detect headers and formats — more rows improve accura…▾
Treats this value (e.g. '-', 'N/A') as null (if Auto-detect field t…
Skip a range or specific rows e.g.: '2-5', '2', '2,4'.
Stop at a specific row number. Default = convert all rows
Remove empty rows
Character used to quote values. Default = '"'
Character used to escape special characters. Default = '\'
Try to detect and unwrap multi-line values. Default = true
Use 'Old=New' pairs, separated by ';'. Example: OrderID=ID;Total=Am…
Comma-separated list of columns to include e.g.: OrderID,Total. Emp…
Appearance of this action in the Power Automate designer (rendered from the connector definition).

Parameters

PropertyNameTypeDescription
csvCSV requiredstringCSV
minLength: 1
delimiterSeparator advancedstring (dropdown)Field separator (delimiter). Default = 'Auto-detect separator'
dynamic dropdown
mayHaveQuotedFieldsAuto-detect Quote Delimiter? advancedbooleanAuto-detect quote delimiter?
default: true
hasHeaderCSV has Headers? advancedbooleanCSV has headers?
default: true
autoDetectHeaderLineAuto-detect Header? advancedbooleanAutomatically detect the header line based on content. Default = true
headerLineIndexHeader Row Index advancedinteger (int32)Use specific row index as header. Ignored if Auto-detect is true. Default = 0
autoDiscoverFieldTypesAuto-detect Field Types? advancedbooleanAuto-detect field types?
default: false
detectionAccuracyDetection Accuracy advancedstring (dropdown)Scans rows to detect headers and formats — more rows improve accuracy. Default = 'Fast'
dynamic dropdown
nullValueNull Value advancedstringTreats this value (e.g. '-', 'N/A') as null (if Auto-detect field type is true). Default = empty
skipRowsRows to skip advancedstringSkip a range or specific rows e.g.: '2-5', '2', '2,4'.
skipLastStop at Row advancedinteger (int32)Stop at a specific row number. Default = convert all rows
ignoreEmptyLineRemove Empty Rows? advancedbooleanRemove empty rows
default: true
quoteCharacterQuote Character advancedstringCharacter used to quote values. Default = '"'
escapeCharacterEscape Character advancedstringCharacter used to escape special characters. Default = '\'
autoDetectWrappedLinesAuto-detect Wrapped Lines? advancedbooleanTry to detect and unwrap multi-line values. Default = true
columnRenamesRename Columns advancedstringUse 'Old=New' pairs, separated by ';'. Example: OrderID=ID;Total=Amount
columnsToIncludeInclude Columns advancedstringComma-separated list of columns to include e.g.: OrderID,Total. Empty = all

Returns

PropertyNameTypeDescription
xmlXML response stringXML response

Example request

{
  "csv": "…"
}

Example generated from the connector definition.