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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Xpath and parsing XML....
Power Automate
Unanswered

Xpath and parsing XML.. Unable to get the correct syntax

(0) ShareShare
ReportReport
Posted on by 48

First timer using Xpath and unsuccessful so attempting some advice from your guys...

 

  1. Trigger = When a file is created or modified (properties only) = OK
  2. Get File Content  (Added Site Address and File Identifier = Dynamic Identifier OK
  3. I am getting the below XML outputs (the XML was created from an Excel)

I am attempting to parse the needed below (in blue) but been going in circles with Xpath.. I am getting all sorts of errors...

 

Any advice?

 

Thank you

 

<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:dt="uuid:CXXXXXXXXX-65B3-11d1-A29F-00AAXXXXXXXXXXXX"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/RE-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>Name Surname</Author>
<LastAuthor>Name Surname</LastAuthor>
<Created>2023-05-31T09:39:48Z</Created>
<LastSaved>2023-05-31T13:47:37Z</LastSaved>
<Version>16.00</Version>
</DocumentProperties>
<CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<ContentTypeId dt:dt="string">0x0101003FXXXXXXXXXXXXXXXXX9546B416</ContentTypeId>
</CustomDocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>12570</WindowHeight>
<WindowWidth>23250</WindowWidth>
<WindowTopX>32767</WindowTopX>
<WindowTopY>32767</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s16">
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s65">
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000" ss:Bold="1"/>
<Interior ss:Color="#4472C4" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s66">
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000" ss:Bold="1"/>
<Interior ss:Color="#4472C4" ss:Pattern="Solid"/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s67">
<Interior ss:Color="#4472C4" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s68">
<Interior ss:Color="#4472C4" ss:Pattern="Solid"/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s69">
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000" ss:Bold="1"/>
<Interior ss:Color="#DBDBDB" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s70">
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000" ss:Bold="1"/>
<Interior ss:Color="#DBDBDB" ss:Pattern="Solid"/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s71">
<Interior ss:Color="#DBDBDB" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s72">
<Interior ss:Color="#DBDBDB" ss:Pattern="Solid"/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s73">
<Interior ss:Color="#DBDBDB" ss:Pattern="Solid"/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s74">
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000" ss:Bold="1"/>
<Interior ss:Color="#C65911" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s75">
<Font ss:FontName="Calibri" x:CharSet="238" x:Family="Swiss" ss:Size="11"
ss:Color="#000000" ss:Bold="1"/>
<Interior ss:Color="#C65911" ss:Pattern="Solid"/>
<NumberFormat ss:Format="@"/>
</Style>
<Style ss:ID="s76">
<Interior ss:Color="#C65911" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s77">
<Interior ss:Color="#C65911" ss:Pattern="Solid"/>
<NumberFormat ss:Format="@"/>
</Style>
</Styles>
<Worksheet ss:Name="Sheet1">
<Table ss:ExpandedColumnCount="9" ss:ExpandedRowCount="2" x:FullColumns="1"
x:FullRows="1" ss:DefaultRowHeight="15">
<Column ss:AutoFitWidth="0" ss:Width="117"/>
<Column ss:StyleID="s16" ss:AutoFitWidth="0" ss:Width="273.75"/>
<Column ss:AutoFitWidth="0" ss:Width="90.75"/>
<Column ss:StyleID="s16" ss:AutoFitWidth="0" ss:Width="151.5"/>
<Column ss:AutoFitWidth="0" ss:Width="207"/>
<Column ss:AutoFitWidth="0" ss:Width="187.5"/>
<Column ss:AutoFitWidth="0" ss:Width="143.25"/>
<Column ss:AutoFitWidth="0" ss:Width="166.5"/>
<Column ss:StyleID="s16" ss:AutoFitWidth="0" ss:Width="207.75"/>
<Row>
<Cell ss:StyleID="s65"><Data ss:Type="String">Investor (Investor.Name)</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Investor External ID (External Identificator.Code -&gt; Investor)</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="String">Fond (Class.Name)</Data></Cell>
<Cell ss:StyleID="s70"><Data ss:Type="String">Investment ID (Investment.Code)</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="String">Investment date (Investment.Investment Date)</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="String">Amount (Investment.Investment amount)</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="String">Currency (Investment.Currency)</Data></Cell>
<Cell ss:StyleID="s74"><Data ss:Type="String">Sales person name (Contact.Name)</Data></Cell>
<Cell ss:StyleID="s75"><Data ss:Type="String">IZ (External identificator.Code -&gt; Sales person)</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s67"><Data ss:Type="String">Name Surname</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="Number">12345</Data></Cell>
<Cell ss:StyleID="s71"><Data ss:Type="String">MW Sicav R</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="Number">6789</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="DateTime">2023-06-21T00:00:00.000</Data></Cell>
<Cell ss:StyleID="s71"><Data ss:Type="Number">1000000</Data></Cell>
<Cell ss:StyleID="s71"><Data ss:Type="String">EUR</Data></Cell>
<Cell ss:StyleID="s76"><Data ss:Type="String">Name2 Surname2 Žid</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">005 0000 1857</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Print>
<ValidPrinterInfo/>
<PaperSizeIndex>9</PaperSizeIndex>
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>600</VerticalResolution>
</Print>
<Selected/>
<LeftColumnVisible>1</LeftColumnVisible>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>14</ActiveRow>
<ActiveCol>6</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard