Quantcast
Channel: converting XML to CSV format
Viewing all articles
Browse latest Browse all 3

converting XML to CSV format

$
0
0

I have to convert XML to CSV format using XSLT Transformation.

 

My XML looks like:

 

<D>

<D1 ID="1" Name="Paul Banas" ActiveStatus="0"/>

<D1 ID="2" Name="Dave" ActiveStatus="0"/>

<D1 ID="3" Name="Mike" ActiveStatus="0"/>

</D>

 

Need to convert to string as shown below using XSLT tranformation

 

"1","Paul Banas","0"

"2","Dave","1"

"3","Mike","1"

 

I found some examples online, but all are using columns as XML Elements but in this case I have columns as XML Attributes.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 3

Trending Articles



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