XML Extraction - Handling Namespaces (Tableau, Soap, OASIS types)

Hello lovely UIPathers :slight_smile:
I am hoping someone can guide me towards how I can extract the restAPIVersion from this deserialized XML:

Tried just about everything I can think of without success & grateful for any pointers.
Thank you!

@aidan.moore
Welcome to the forum

you may have to handle XML namespaces

Have a look here

Maybe you can share the XML as text with us

Going ahead
Serializing the XML - output: xDoc | DataType: XDocument:
grafik

Checking if we have to handle XML namespaces

We do have:
grafik

Checking for some children:
grafik

Defining Namespace Variable
grafik

Checkin the retrieval
grafik

xDoc.Descendants(xnsDefault + "productVersion")
 GetDescendants { [<productVersion build="456" xmlns="http://tableau.com/api">123</productVersion>] }
 xDoc.Descendants(xnsDefault + "productVersion").First().Value
 "123"
 xDoc.Descendants(xnsDefault + "productVersion").First().Attribute("build").Value
 "456"
 xDoc.Descendants(xnsDefault + "restApiVersion").First().Value
 "3.12"
4 Likes
Get the specific Data from XML file
Parse SOAP request(Deserialize XML) to get body value
Reading XML - problem with name spaces
Deserialize XML from SOAP
Why isn't the item after the Deserialize XML activity going into For Each?
Xml file reading and extracting some information from it
Need help in parsing repeating XML data
How to enter a new line in the XML file
How to deserialize XML
Execute xpath in studio
XML Assistance
Need to extract particular table from large XML
Getting Error deserializing xml
Unable to get values after XML deserialization
Extraction of Data From a XML File
Xml reading
How to retrieve the DeliveryStatus from Deserialized Soap XML File?
How to create an arraylist of xelements(?) from an XML file?
Need to Process XML Spreadsheet
Xml file with xmlns value
How to get the word in xml code?
XML deserialisation not working
Deserialize response from azure blob API
How to Extract the data from XML file
Data Extraction from SOAP envelop Environment xml file
Convert critical Json To DataTable
Extracting Data from XML file having tags in format <SAP:Retry>
Generate Xpath
Problem getting values xml soap (Details)
How to search data from XML response
How Can I Read Tag from XML response
How to identify the quantity of items in the NFe xml
How to access XML element and get value?
How to find data inside Italian Xml Invoice?
Fetching values from XML
Deserialize xml SOAP Error "&lt", "gt;"
Read a DiffGram data container
How to automatically detect a namespace in the root label, to then extract its value into a variable and be able to loop through the elements
Xml Help with node
Xml check if name exist
How to get and update the value of a attribute from the XML file
Forum Engagement Daily Reports
Reading XML - Issue with main element and for each
Data extraction from XML file

Thanks Peter!
Annoyingly I had squiggly brackets around the XNamespace until I read your solution.

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