How to flatten XML document using azure dataflows allowing for schema drift?

Uffe Friis Torlyn 1 Reputation point
2022-06-27T12:51:16.983+00:00

I have a simple XML document looking like the below. However the tags within "Point" can change and other tags can added in the future.
I need to unfold/flatten the file at "Point".

I have tried numerous of things included tryind to derived "Point" as a column like this:
byItem(byName('ns0:HistoricalActivation_MarketDocument'),"ns0:Point")

![215356-image.png]2

And I have also tried to unfold it directly using this:

![215367-image.png][3]

Niether works. Any suggestions?

XLM file example
<ns0:HistoricalActivation_MarketDocument xmlns:ns0="urn:iec62325.351:tc57wg16:451-7:historicalactivationdocument:6:0" xmlns:cl="urn:entsoe.eu:wgedi:codelists">
<ns0:Point>
<ns0:position>1</ns0:position>
<ns0:quantity>0</ns0:quantity>
</ns0:Point>
<ns0:Point>
<ns0:position>2</ns0:position>
<ns0:quantity>0</ns0:quantity>
</ns0:Point>
</ns0:HistoricalActivation_MarketDocument>

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.