title: Windows PowerShell parse HTML local file
body: <p>I would like to build an array from an HTML file using PowerShell.</p>
  
  <p>I am using a script which download the HTML File from the Mozilla Firefox Developer Edition (I am downloading the index file) locally and I would like to parse it to get the value of the options elements inside the select element which have the id set to id_country.</p>
  
  <p>I have been recommended to use XPath for that but I can't figure how to parse the file and build an array from the result. Maybe using regex could be a workaround. </p>
  
  <p>The HTML file is here : </p>
  
  <p><a href="http://pastebin.com/b8cShFLA" rel="nofollow">http://pastebin.com/b8cShFLA</a></p>
  
  <p>And I would like to all the values of the options elements here: </p>
  
  <pre><code>&lt;select aria-required="true" id="id_country" name="country" required="required"&gt;
     &lt;option value="af"&gt;Afghanistan&lt;/option&gt;
     &lt;option value="al"&gt;Albania&lt;/option&gt;
     &lt;option value="dz"&gt;Algeria&lt;/option&gt;
     &lt;option value="as"&gt;American Samoa&lt;/option&gt;
     &lt;option value="ad"&gt;Andorra&lt;/option&gt;
  </code></pre>
  
  <p>...</p>
  
  <p>I am quite new to PowerShell that's why I am not really aware of different solutions I might be able to use. I would need something quite fast as it's part of a package installer.</p>
  
  <p>Basically the script will try to see if there is an installer which match the locale of the user's computer and if not it will default to english that's why I need to get the values from that list in order to check the firefox dev available locales.</p>
  
  <p>Regards, 
  O</p>