Need help to extract values from XML response

Hi,

Hope you are doing well.

Can anyone help me to extract all repeated OutpuID’s from below XML response

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>soapenv:Body2024-05-22T16:42:33.318Zfalsetruefalsepdf3692132024-05-22T16:42:33.318Z2802834928967_Consolidated.pdfS DOCUMENT_PROCESSING_SUCCESSFUL [INSTANCE_ID=bip.bi_server1] 52030_1140302024-05-22T16:42:31.741Zfalsetruefalsepdf3692162024-05-22T16:42:33.032Z2802816001088_1<parentOutputId xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance

Hi @divya.x.kuchi

Read your XML file using Read Text File Activity & Give their output to Deserialize XML Activity as input. You will get output from that in this case i have used variable OutXMLDes.

Use this assign & you will have all the output ids in the list format.

(From node In OutXMLDes.Descendants(XName.Get("outputId", "http://xmlns.oracle.com/oxp/service/v2"))
 Select node.Value).ToList()

Hope this helps :slight_smile:

For Ref-
XML.zip (3.3 KB)

You will handle XML namespaces as described here

1 Like

Thanks for the help!

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