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 / X path expression in p...
Power Automate
Unanswered

X path expression in power automate cloud flow

(0) ShareShare
ReportReport
Posted on by

xpath expression -I have 2 field tags where 1 is child and nother is children tag ,when extracting child tag value it is giving both the children and child values, also I have tried with ends-with local name():child it's not working as expected .

can someone help on xpath expression to get only child value.

 

<Child_x0028_ren_x0029_>

<Child>

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @padmak 

     

    Could you pls explain a bit by sharing the xml nodes with sample data?

     

     

  • padmak Profile Picture
    on at

    <Child_x0028_ren_x0029_>

    value :1

    </Child_x0028_ren_x0029_>

     

    <Child>

    value:2

    </Child>

    when I am extracting child -value 

    [ends-with(local-name(): "Child")] ,

    [contains(local-name():"Child")]

    with X path expression I am getting both the values of children value & child value

     

    can you please help me to get child value alone .

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @padmak 

     

    Pls try the below xpath query:

    //Child/text()

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard