title: How to convert this XML to CSV using PowerShell 2.0?
body: <p>I'm trying to convert the following XML to CSV using PowerShell 2.0, I can get some of the data out but when trying to go through the XML objects I can't seem to get just the data in a format that would allow me to make a good table.</p>
  
  <p>What I have is something like this, with multiple item's</p>
  
  <ol>
  <li><blockquote>
  <pre><code>&lt;root type="array"&gt;   
    &lt;item type="object"&gt;
      &lt;short_version type="string"&gt;11&lt;/short_version&gt;
      &lt;long_name type="string"&gt;Internet Explorer&lt;/long_name&gt;
      &lt;api_name type="string"&gt;internet explorer&lt;/api_name&gt;
      &lt;long_version type="string"&gt;11.0.9600.16384.&lt;/long_version&gt;
      &lt;latest_stable_version type="string"&gt;&lt;/latest_stable_version&gt;
      &lt;automation_backend type="string"&gt;webdriver&lt;/automation_backend&gt;
      &lt;os type="string"&gt;Windows 2012 R2&lt;/os&gt;
    &lt;/item&gt;
    ... 
  &lt;/root&gt;
  </code></pre>
  </blockquote></li>
  </ol>
  
  <p>Either I end up with the Type or if I try and access the InnerHTML I get only the values, but in a long string.</p>
  
  <p>I'm have so far:</p>
  
  <pre><code>[xml]$convertMe = Get-Content $jsonTemp
  $convertMe.SelectNodes("//item") | % { $_.InnerText }
  </code></pre>
  
  <p>How can I get this in a nice CSV format like:</p>
  
  <blockquote>
    <p>short_version,long_name,api_name,long_version,latest_stable_version,automation_backend,os
    11,Internet Explorer,internet explorer,11.0.9600.16384,,webdriver,Windows 2012 R2</p>
  </blockquote>