Module: MultiXml::Parsers::Libxml

Extended by:
Libxml
Includes:
Libxml2Parser
Included in:
Libxml
Defined in:
lib/multi_xml/parsers/libxml.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from Libxml2Parser

#node_to_hash

Instance Method Details

#parse(xml) ⇒ Object



14
15
16
# File 'lib/multi_xml/parsers/libxml.rb', line 14

def parse(xml)
  node_to_hash(LibXML::XML::Parser.io(xml).parse.root)
end

#parse_errorObject



10
11
12
# File 'lib/multi_xml/parsers/libxml.rb', line 10

def parse_error
  ::LibXML::XML::Error
end