cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
wayne_taylor Frequent Visitor
Frequent Visitor

Get TEXT data from XML files

Hi All

 

I'm trying to access TEXT data in an XML file. I can get the Attributes fine, but not the text!  

 

The XML file is in format below and I can access the ActionRow data (ID/BID/XYX) ok by expanding the table, but I also need the MAINID value (2888 in this example), but can't figure out how to get it!

 

Any help appreciated.

 

Wayne

 

<XMLFEED>

  <MAINID>2888

  <Data>

      <ActionRow ID="123" BID="321" XYX="999"/>

      <ActionRow ID="124" BID="333" XYX="888"/>

  </Data>

  </MAINID>

</XMLFEED>

 

 

1 REPLY 1
Super User III
Super User III

Re: Get TEXT data from XML files

@wayne_taylor 

 

Try this custom Column

Change the file name and address in red font below

 

=Text.BeforeDelimiter(
Xml.Document(File.Contents("C:\Users\hp\Desktop\File.xml"))[Value]{0}[Value]{0},
" ")
Try my new Power BI game Cross the River

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors