class Aws::Xml::Parser::RexmlEngine

def parse(xml)

def parse(xml)
  begin
    mutable_xml = xml.dup # REXML only accepts mutable string
    source = REXML::Source.new(mutable_xml)
    REXML::Parsers::StreamParser.new(source, self).parse
  rescue REXML::ParseException => error
    @stack.error(error.message)
  end
end