Best way to retrieve a XML node value?

I’ve tried many things and can’t seem to get the imageURL value from the below XML.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <GetDocumentResponse xmlns="http://www.aaacooper.com/">
            <GetDocumentResult>
                <ImageType>BL</ImageType>
                <ImageFormat>PDF</ImageFormat>
                <ImageUrl xsi:type="xsd:string">HTTP://ECM.AAACOOPER.COM/PGMS/rvimain.pgm?ENCI=774E12312313247BFFA6703360932A26C89812F226F067238F129E10EC416DC8A006F&amp;</ImageUrl>
                <ErrorMessage />
            </GetDocumentResult>
        </GetDocumentResponse>
    </soap:Body>
</soap:Envelope>

https://docs.uipath.com/activities/other/latest/developer/read-and-deserialize-a-xml-file

as you have to handle XML Namespaces have a look here:
XML Extraction - Handling Namespaces (Tableau, Soap, OASIS types) - Help / Community - UiPath Community Forum

To adress your case more individually in addition to above shared link:

Parsing - output:xDoc

grafik

Name/Namespace Analysis (as described in the shared link content)
grafik

Namespace setup:
grafik

Retrieval sample:
grafik

2 Likes

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