Sha256: 4345d0ed87f11e3403a5225aeb4865fd21f59c540d48e052762c9abd3b062903

Contents?: true

Size: 562 Bytes

Versions: 53

Compression:

Stored size: 562 Bytes

Contents

require 'libxml' unless defined?(LibXML)
require 'multi_xml/parsers/libxml2_parser'

module MultiXml
  module Parsers
    module Libxml #:nodoc:
      include Libxml2Parser

      extend self

      def parse_error() ::LibXML::XML::Error end

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

      def each_child(node, &block)
        node.each_child(&block)
      end

      def each_attr(node, &block)
        node.each_attr(&block)
      end

      def node_name(node)
        node.name
      end
    end
  end
end

Version data entries

53 entries across 52 versions & 8 rubygems

Version Path
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
simplenet-client-0.2.0 ./vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
simplenet-client-0.2.0 ./vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.3.1 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.3.0 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.2.9 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.2.8 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.2.7 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.2.6 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb
plyom_user-0.2.5 vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb