XML added to Parse transformation in ADF and Synapse Data Flows

Published May 10 2021 03:36 PM 4,924 Views

The Parse transformation in Azure Data Factory and Synapse Analytics data flows allows data engineers to write ETL data transformations that take embedded documents inside of string fields and parse them as their native types. For example, you can set parsing rules in the Parse transformation to handle JSON and delimited text strings and transform those fields into complex types. Now, we've updated Parse to also understand XML as a source type in your incoming string data.


In this example, I have a text delimited CSV data source. Since this is a simple text file, the embedded XML document in the column labeled "xml" is read as a string, so I am unable to treat it like a hierarchical structure. However, by adding the Parse transformation, I can select XML as my incoming embedded type and define the structure "customers" as the new column that is now hierarchical:




  • Source XML data: <Customers><Customer>122</Customer><CompanyName>Great Lakes Food Market</CompanyName></Customers>

    • Expression: (Customers as (Customer as integer, CompanyName as string))
1 Comment
Version history
Last update:
‎May 10 2021 03:36 PM
Updated by: