title: REXML :: RuntimeError (entity expansion has grown too large)
body: <p>After upgrading to Ruby-1.9.3-p392 today, REXML throws a Runtime Error when attempting to retrieve an XML response over a certain size - everything works fine and no error is thrown when receiving under 25 XML records, but once a certain XML response length threshold is reached, I get this error:</p>
  
  <pre><code>Error occurred while parsing request parameters.
  Contents:
  
  RuntimeError (entity expansion has grown too large):
    /.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rexml/text.rb:387:in `block in unnormalize'
  </code></pre>
  
  <p>I realize this was changed in the most recent Ruby version:
  <a href="http://www.ruby-lang.org/en/news/2013/02/22/rexml-dos-2013-02-22/">http://www.ruby-lang.org/en/news/2013/02/22/rexml-dos-2013-02-22/</a></p>
  
  <p>As a quick fix, I've changed the size of <code>REXML::Document.entity_expansion_text_limit</code> to a larger number and the error goes away. </p>
  
  <p>Is there a less risky solution? </p>