Lets use nokogiri to more reliably parse the XML.
Use ActiveSupport 3.1
Dump out some debugging data.