Need help with XML Deserialize

I have part of XML like this :

</nc:EntityPerson>], [<nc:EntityPerson s:id=“Attorney”
xmlns:s=“http://niem.gov/niem/structures/2.0” xmlns:nc=“http://niem.gov/niem/niem-
core/2.0”>

nc:PersonName
nc:PersonGivenName Alpha </nc:PersonGivenName>
nc:PersonMiddleName Z. </nc:PersonMiddleName>
nc:PersonSurName Gamma </nc:PersonSurName>
</nc:PersonName>
</nc:EntityPerson>] }

I want to extract the PersonGivenName,Middle Name& Surname for ID = “Attorney”… Please advise.

Hi @harsh2 ,

if posuble share full xml.

thanks,

when I use XDoc.Root.Descendants(in_Xnc+“EntityPerson”) this is what I get.
XML.txt (1.2 KB)

please share the origin XML as textfile

We assume that the XML Namespace handling is known. Otherwise:
XML Extraction - Handling Namespaces (Tableau, Soap, OASIS types) - Help / Community - UiPath Community Forum

Here is the full XML as text file. I want to extract attorney’s full name.
XML.txt (11.0 KB)

grafik
so we need the nc and s namespace as XNamespace Variables

grafik

And can filter the descendants to:
grafik

From the return we can retrieve the name details

Thank you ! Is there anyway we can get the value for “PersonName” ??? or how to retrieve the ‘PersonGivenName’ only ?

will be done as usually we do the retrieval alonng with namespace handling
grafik

OR
grafik

We recommend to go again through all applied things and concepts to get more famillar on what was done. As the most of shared starters help were just variations of already shared base concepts

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