class Nokogiri::XML::SAX::Parser

def parse thing

IO object.
Parse given +thing+ which may be a string containing xml, or an
##
def parse thing
  parse_memory(thing.is_a?(IO) ? thing.read : thing)
end