Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSLT to convert XML to CSV

$
0
0

Heya

struggling to convert this piece of xml to csv:

<?xml version="1.0" encoding="utf-8"?><Workbook xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"><Worksheet ss:Name="Table1"><Table x:FullColumns="1" x:FullRows="1"><Row><Cell><Data ss:Type="String">Queue Name</Data></Cell><Cell><Data ss:Type="String">Queue Count</Data></Cell></Row><Row><Cell><Data ss:Type="String">LSE02 config for Fast Level 1 B</Data></Cell><Cell><Data ss:Type="Number">237344</Data></Cell></Row><Row><Cell><Data ss:Type="String">LSE02 config for Fast Indices B</Data></Cell><Cell><Data ss:Type="Number">8</Data></Cell></Row><Row><Cell><Data ss:Type="String">LSE02 config for NSX Fast Level 1 B</Data></Cell><Cell><Data ss:Type="Number">0</Data></Cell></Row><Row><Cell><Data ss:Type="String">LSE02 config for NSX Fast Indices B</Data></Cell><Cell><Data ss:Type="Number">1</Data></Cell></Row></Table></Worksheet></Workbook>

desired result is csv  formatted as below

Queue Name,Queue Count

LSE02 config for Fast Level 1 B,237344

LSE02 config for Fast Indices B,8

LSE02 config for NSX Fast Level 1 B,0

LSE02 config for NSX Fast Indices B,1

many thanks in advance

BT



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>