title: How should I parse large XML files in Perl?
body: <p>Does reading XML data like in the following code create the DOM tree in memory?</p>
  
  <pre><code>my $xml = new XML::Simple;
  
  my $data = $xml-&gt;XMLin($blast_output,ForceArray =&gt; 1);
  </code></pre>
  
  <p>For large XML files should I use a <a href="http://en.wikipedia.org/wiki/Simple_API_for_XML" rel="nofollow noreferrer">SAX</a> parser, with handlers, etc.?</p>