XML : Powershell How to export the XML file into Excel (CSV)

I would like to export this xml file into Excel (CSV). I have search online for some examples but I cant seem to find anything which can hep me.

I'm not good with powershell.

  <?xml version="1.0" encoding="UTF-8"?>  <products updated="12/16/2015">    <product name="office">      <addresslist type="IPv6">        <address>2</address>        <address>256</address>        <address>434</address>      </addresslist>      <addresslist type="IPv4">        <address>13.107</address>        <address>13.14/24</address>      </addresslist>      <addresslist type="URL">        <address>*.google</address>        <address>*.yahoo</address>        <address>*.some other link</address>      </addresslist>    </product>    <product name="LYO">      <addresslist type="URL">        <address>*.rtrt</address>        <address>eever</address>      </addresslist>      <addresslist type="IPv4">        <address>23.178</address>        <address>23.18</address>        <address>23.19</address>      </addresslist>      <addresslist type="IPv6">        <address>2a01:13::/4</address>        <address>2a01:1</address>      </addresslist>    </product>  </products>    

No comments:

Post a Comment