module MultiXml::Parsers::Libxml
def parse(xml)
xml::
Parse an XML Document string or IO into a simple hash using libxml.
def parse(xml) if !xml.respond_to?(:read) xml = StringIO.new(xml || '') end char = xml.getc if char.nil? {} else xml.ungetc(char) LibXML::XML::Parser.io(xml).parse.to_hash end end
def parse_error; ::LibXML::XML::Error; end
def parse_error; ::LibXML::XML::Error; end