How to get elements having specific attribute from XML using LINQ(Where clause in xml)

Опубликовано: 13 Октябрь 2024
на канале: One Minute RPA with Mannoj
149
0

Problem statement - We need to extract book details from the
XML data where the genre is 'fantasy'

Here is the query to get the data

From nm In xelement.Elements("book") _
Where CStr(nm.Element("genre")) = "Fantasy" _
Select nm

Code: https://github.com/manojbatra071/UiPa...

Medium:   / how-to-get-elements-having-specific-attrib...  

#rpa #uipath #OneMinuteRPA #uipathrpa #uipathstudio