XML File copy in azure data factory with different namespace prefix

Rajana Devassykutty 6 Reputation points
2022-03-30T21:18:00.6+00:00

Hi,

I have 2 different xml files like below which has the same namespace for elements but with different prefix.

When I gave ns1:Bill in the mapping it copied only 1 file.
When I tried with *:Bill it was not copying the data

Can you please let me know how should I give the mapping in this case?

File 1:

<?xml version="1.0" encoding="utf-8"?>
<ns1:Bill xmlns:ns1="http://schemas.company.com/bill/v1.0">
<Transaction>
.....
</Transaction>
</ns1:Bill>

File 2:

<?xml version="1.0" encoding="utf-8"?>
<ns12:Bill xmlns:ns2="http://schemas.company.com/bill/v1.0">
<Transaction>
.....
</Transaction>
</ns1:Bill>

Thanks in advance
Rajana D

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

2 answers

Sort by: Most helpful
  1. Saurabh Sharma 23,671 Reputation points Microsoft Employee
    2022-04-06T20:08:31.823+00:00

    Hi @Rajana Devassykutty ,

    I have got the confirmation from the products team that the XML connector doesn't handle this scenario today and this seems like an improvement for the XML connector. Please provide your feedback to Azure Feedback website so that community can upvote and products team can plan to include this in future releases.

    Please let me know if you have any other questions.

    Thanks
    Saurabh

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

  2. Rajana Devassykutty 6 Reputation points
    2022-05-24T19:25:22.103+00:00

    Thanks Saurabh

    0 comments No comments