cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maheshmacintosh
New Member

Retrieve xml element value

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>

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
A_I
Regular Visitor

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

View solution in original post

3 REPLIES 3
burque505
Helper V
Helper V

@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

 

A_I
Regular Visitor

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

Anonymous
Not applicable

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Top Kudoed Authors
Users online (5,052)