I have an issue with reading the XML file in UiPath. UiPath is unable to read XML when 2nd attribute is present in the beginning of the XML. Please find attached XAML workflow and two XML files. First file: OK - is working because second attribute is deleted, second file: NOT OK - is not working because of the second attribute. Please find also attached screenshot of the second attribute. How can I read the NOT OK XML file in UiPath?
It seems you found a solution that works for you, but in case someone runs into a similar problem and can’t or doesn’t want to modify the original XML, it’s possible to access elements using the XmlDocument class and XPath expressions: GetSupplierNameFromXML.zip (4.2 KB)
The important point is the use of the default namespace.