title: XML File Parse in javascript how to. Large File maybe use SAX?
body: <p>G'day All,</p>
  
  <p>I am pulling my hair out, getting headaches and my eyes hurt. I have been hither and thither and I seem to get whither.</p>
  
  <p>This will be my first experience with xml and would really want to get this working. It is a large file. Well large in my eyes +-5mb. I can not imagine that this file would be loaded into memory to process. Users will get a bit peeved with this.</p>
  
  <p>Basically we are using a 3rd parties site to do our ecommerce. So we have no access to the database other than via the admin area.</p>
  
  <p>What we want to do is make sure that there is no stuff ups when it comes to addresses. Therefore we got this xml file put together listing all postcodes with areas and states:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;POSTCODES&gt;
      &lt;PostCode id="2035"&gt;
          &lt;Area&gt;2035 1&lt;/Area&gt;
          &lt;Area&gt;2035 2&lt;/Area&gt;
          &lt;Area&gt;2035 3&lt;/Area&gt;
          &lt;State&gt;NSW&lt;/State&gt;
      &lt;/Postcode&gt;
      &lt;PostCode id="2038"&gt;
          &lt;Area&gt;2038 1&lt;/Area&gt;
          &lt;Area&gt;2038 2&lt;/Area&gt;
          &lt;Area&gt;2038 3&lt;/Area&gt;
          &lt;State&gt;NSW&lt;/State&gt;
      &lt;/Postcode&gt;
      &lt;PostCode id="2111"&gt;
          &lt;Area&gt;2111 1&lt;/Area&gt;
          &lt;Area&gt;2111 2&lt;/Area&gt;
          &lt;Area&gt;2111 3&lt;/Area&gt;
          &lt;State&gt;NSW&lt;/State&gt;
      &lt;/Postcode&gt;
  &lt;/POSTCODES&gt;
  </code></pre>
  
  <p>Someone suggested SAX but suddenly died when asked how? The web is not helping unless I am not looking properly. I see a lot of examples. Either they do not show how to read the file but rather do it from a textarea or the example is in java.</p>
  
  <p>What do we want? User enters a post code of 2038. We want to go to the javascript with that data and have returned to us all the suburbs that full within that post code.</p>
  
  <p>Anyone out there that can please tell me what to download and how to use it to get what i need?</p>
  
  <p>Please, please, please. It is hard to see a grown man begging and crying but I am.</p>