web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Retrieve xml element v...
Power Automate
Answered

Retrieve xml element value

(1) ShareShare
ReportReport
Posted on by 14

Hi,

 

Below is the xml and need to retrieve only market value.

I tried providing "root/documents/document/market" in XPath query in "Get XML element value" but it retrieves nothing.

Please help me in this regard. Thanks in advance.

 

<?xml version="1.0" encoding="utf-8"?>
<root>
<documents>
<document>
<isSpecimen value="False" />
<report value="ReportTest" />
<type value="Parent" />
<market value="CountryTest" />
</document>
</documents>
</root>

 

 

I have the same question (0)
  • burque505 Profile Picture
    398 on at

    @maheshmacintosh, I believe you have discovered a bug. 

    I ran a small test with the file 'books.xml' from Microsoft available here. 

    I also viewed the video at this link. At approximately 4:49 in the video, the following screen is shown:

    should get this.PNG

    Obviously this is based on a different XML file, but we should still get a list of properties. We don't.

    For the file 'books.xml',

    read xml.png

    after running and clicking on the variable, we get only a single property':

    books.xml.png

    The single property '.XmlNode' is shown. Clicking 'more' we get this:

    more.png

    In short, it appears to me that this Action is not functioning properly. I feel it is safe to assume the remainder of the XML Actions may also not be functioning properly.

    Regards,

    burque505

     

  • Verified answer
    A_I Profile Picture
    16 on at

    With that syntax, use Get XML element attribute instead of Get XML element value

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @maheshmacintosh 

     

    As @A_I already said, you have to use action "Get XML element attribute" for this purpose.

     

    shindomo_0-1633527110254.png

     

    Result:

    shindomo_1-1633527288569.png

     

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 410

#2
Vish WR Profile Picture

Vish WR 289

#3
David_MA Profile Picture

David_MA 282 Super User 2026 Season 1

Last 30 days Overall leaderboard