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