# File lib/gdata/http/response.rb, line 29 def to_xml if @body begin return REXML::Document.new(@body).root rescue raise RuntimeError, "Response body not XML." end else return nil end end