Fetching values from XML

Hi All,

I have an XML and I need to fetch the value of ID under tag <d:ID>.

Please help me here.

Thanks in advance.

Hi @Akansha

You can try with Regex Expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=\Wd:ID\W)\d.*(?=\W\Wd:ID\W)").Tostring

image

Regards
Gokul

1 Like

the XML is defining namespaces. Have a look on the referenced post which is introducing how to handle value retrievals:

XML Extraction - Handling Namespaces (Tableau, Soap, OASIS types) - Help / Community - UiPath Community Forum

1 Like

@Akansha
Deserialize activity to get the element from XML response.

HI,

Hope the following sample helps you.

Sample20221116-3.zip (3.4 KB)

Regards,

Thank You Yoichi. Able to fetch the values now

1 Like

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