title: Extract N strings from an xml based file
body: <p>I am currently fighting with awk to extract multiple strings from xml based files, and export those strings in a csv format</p>
  
  <p>below snippet of the tags I am trying to get :</p>
  
  <pre><code>    &lt;GroupInfo Description="" Name="Site 2" Path="My Company\Site 2"/&gt;
      ...
      ...
      &lt;PrivateInsightServerList EnableEntireServerList="1" &gt;
        &lt;PrivateInsightServer Address="douda" LegacyClientSupport="1" Port="80" Protocol="HTTP"/&gt;
      &lt;/PrivateInsightServerList&gt;
      &lt;PrivateInsightServerList EnableEntireServerList="1" &gt;
        &lt;PrivateInsightServer Address="douda2" LegacyClientSupport="0" Port="443" Protocol="HTTPS"/&gt;
      &lt;/PrivateInsightServerList&gt;
  </code></pre>
  
  <p>I do not know how to parse the file knowing the amount of servers from the xml can vary from 0 to N, but always are with the same structure.</p>
  
  <p>Ideally, I am looking for the following in a csv, and add the N servers from the same xml file to the same line like this :</p>
  
  <pre><code>path,address,port,protocol
  </code></pre>
  
  <p>eg. from the snippet : </p>
  
  <pre><code>My company\site 2,douda,80,HTTP,douda2,443,HTTPS
  </code></pre>