Read xml

How can I extract information from an xml, do you have any examples?

Kindly have a view on this thread and it has got an example as well

Cheers @Ivan_torres_oliva

Hi @Ivan_torres_oliva

Step 1:
Drag “Read Text File” activity into the designer panel, pass the .XML file’s path to it and save the output to a string variable.
extract-data-from-a-xml-file1
extract-data-fro1m-a-xml-2

Step 2:
Drag “Deserialize XML” activity into the designer panel to deserialize XML string. Supply the variable “xml_Data” to it as input and create a variable called “out_XML” of XDocument type
extract-data-from-a-xml-file-2
extract-data-from-a-xml-file-3

Step 3:
Drag “For Each” activity into the designer panel and supply the below-mentioned parameters into it
extract-data-from-a-xml-file-4
extract-data-from-a-xml-file-5

Step 4:
Use “Message Box” activities to display the contents.
extract-data-from-a-xml-file-6
Step 5:
Finally, run the project :slightly_smiling_face:
extract-data-from-a-xml-file-7 extract-data-from-a-xml-file-9 extract-data-from-a-xml-file-8

If you find it useful mark it as solution and close the thread.

Cool ,
Regards,
Gulshiyaa

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.