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 / How to convert Excel X...
Power Automate
Unanswered

How to convert Excel XML to csv

(1) ShareShare
ReportReport
Posted on by 2

I tried this , but it seems not working with Excel XML format. I can use PowerShell to do the job. But how can I do it with Power Automate? Is it even possible? Thanks.

 

FYI, the beginning of the format is like 

<html xmlns:x="urn:schemas-microsoft-com:office:excel"><head><meta http-equiv="Content-type" content="text/html;charset=UTF-8" /></head><style><!--
 body,table{font-size:14px;}
 table{border-collapse:collapse;}
 th{padding:2px;border:1px solid #000;white-space:nowrap;background-color:#F2FAFF;}
 td{padding:2px;border:1px solid #000;white-space:nowrap;}
 --></style><body><table border="1" cellspacing="0" cellpadding="0"><tbody><tr><th style="background-color:#F2FAFF;white-space:nowrap;" >xx/position</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-19</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-20</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-21</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-22</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-23</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-24</th><th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-25</th></tr><tr><td >aaa</td><td >9</td><td >12</td><td >4</td><td >8</td><td >4</td><td >10</td><td >7</td></tr><tr><td >xxxx</td><td >7</td><td >12</td><td >11</td><td >13</td><td >13</td>

 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @happyjoo 

     

    The given XML in your post is not valid:

     

    82121-ex-01.png

     I changed it to this and it works:

     

    <html xmlns:x="urn:schemas-microsoft-com:office:excel">
    	<head>
    		<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    	</head>
    	<style>
    		<!--
     body,table{font-size:14px;}
     table{border-collapse:collapse;}
     th{padding:2px;border:1px solid #000;white-space:nowrap;background-color:#F2FAFF;}
     td{padding:2px;border:1px solid #000;white-space:nowrap;}
     -->
    	</style>
    	<body>
    		<table border="1" cellspacing="0" cellpadding="0">
    			<tbody>
    				<tr>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >xx/position</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-19</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-20</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-21</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-22</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-23</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-24</th>
    					<th style="background-color:#F2FAFF;white-space:nowrap;" >2021-07-25</th>
    				</tr>
    				<tr>
    					<td >aaa</td>
    					<td >9</td>
    					<td >12</td>
    					<td >4</td>
    					<td >8</td>
    					<td >4</td>
    					<td >10</td>
    					<td >7</td>
    				</tr>
    				<tr>
    					<td >xxxx</td>
    					<td >7</td>
    					<td >12</td>
    					<td >11</td>
    					<td >13</td>
    					<td >13</td>
    				</tr>
    			</tbody>
    		</table>
    	</body>
    </html>
    					

     

    You can then try to use guidelines from post you were looking at, onxml or power bi dataset to csv Besides those in the post you can also use xpath expression query to query the XML nodes directly and get a list of nodes that way that you can use to build the CSV out of the XML.

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 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard