This is the backported of #1296 to 3-1-stable, as it was fixed in master but not on v3.1.0. I hit it hard when I upgraded my application to 3.1.0 and Ruby 1.9.2.
@tenderlove and @josevalim, please merge this in before release v3.1.1. ❤️ ❤️ ❤️
Issue #636 - Parsing an xml file with multiple records and extra attr…
…ibutes (besides type) fails