Now, I have a XML file. It can’t be directly read by people. Usually, I will open a blank excel, then I will open the XML file in this excel. How about the UiPath. I mean, if there has some activities can change the format about the XML file to excel file?
I used your solution, but I am getting only, lets say, first row of the xml and not the full list of columns. Do you have any ideas, how can I solve this problem?
The solution mentioned converts the XML to a dataset, which is going to be a collection of datatables. This is a good solution if, as the original question asked, you want to extract out ALL data from the XML, flatten it out, and paste it into excel. Note that you’d want to loop through each datatable in the dataset if there are multiple children in the XML, as each child becomes one datatable when converting XML to dataset.
If you are trying to extract out specific values, it is much better to use deserialize XML activity instead. This allows you to navigate the document and choose specific elements, nodes, values, etc from the XML document and also allows you to use XPath expressions.
With an XML there is usually specific data to be extracted. Deserializing XML allows UiPath to read it as an XDocument type to find and extract that data more easily. If you can be more specific about what you’re trying to achieve perhaps we can help?