XML File in Azure Data factory with different name spaces

Gijs van Gent 1 Reputation point
2022-05-10T20:02:31.787+00:00

Hi,

I have several different XML files like below which have different Namespaces in the XML files.
I have created a Dataflow in ADF, but when I check in the Source, Tab projection, and I Import the projection, you will see 2 different columns names: http://www.example.nl/2021/01 and http://www.example.nl/2022/02.
When I create a dataflow with 1 XML as a source, for example with namespace: http://www.example.nl/2021/01, everything works fine, but when I read the XML file with Namespace http://www.example.nl/2022/02 and http://www.example.nl/2021/01 it will show all the data fore http://www.example.nl/2021/01 but for http://www.example.nl/2022/02 it will show no data ( NULL).

Is there a way to avoid or solve this so I can read the XML files with a dataflow?

File 1
<?xml version="1.0" encoding="UTF-8"?>
<ns0: Claim xmlns:ns0="http://www.example.nl/2021/01">
<ns0:response>
………
</ns0:response>
</ns0: Claim>

File 2
<?xml version="1.0" encoding="UTF-8"?>
<ns0: Claim xmlns:ns0="http://www.example.nl/2022/02">
<ns0:response>
………
</ns0:response>
</ns0: Claim>

Thanks in advance..

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

Your answer

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