I have the following xml file with the below structure to convert to csv using Azure function C#. The XML file is located in Azure Data Lake location. The structure of the file is as follows.
<root id="1" created_date="01/01/2023" asof_date="01/01/2023">
<level1>
<data1>sdfs</data1>
<data2>true</data2>
<level2 rec="4">
<level_record>
<groupid>1</groupid>
<groupname>somegroup</groupname>
<groupdate>01/01/2023</groudate>
<groupvalue>5</groupvalue>
<groupkey>ag55</groupkey>
</level_record>
<level_record>
<groupid>2</groupid>
<groupname>somegroup1</groupname>
<groupdate>02/01/2023</groudate>
<groupvalue>6</groupvalue>
<groupkey>ag56</groupkey>
</level_record>
</level2>
</level1>
</root>
How do i read the file from Azure data lake and convert it as a csv file?
Here is the example of Azure Function in C# that reads an XML file from Azure Data Lake Storage and converts it to a CSV file