Class AWS::Core::XML::Parser
In: lib/aws/core/xml/parser.rb
Parent: Object

Methods

new   parse   parse   sax_handler   simulate  

Attributes

rules  [R]  @return [Hash] Returns the rules for this xml parser that define
  how it should transform the XMl into Ruby.

Public Class methods

@param [Hash] rules A has of xml parsing rules. Generally

  rules will come from an xml grammar.

@param [String] xml An XML document string to parse. @param [Hash] rules A has of xml parsing rules. Generally

  rules will come from an xml grammar.

@return [Hash] Returns a hash of parsed xml data.

Public Instance methods

@param [String] xml An XML document string to parse. @return [Hash] Returns a hash of parsed xml data.

@return [Hash] Returns a hash of mostly empty placeholder data.

Protected Instance methods

There are three handlers, nokogiri is the fastest, followed by libxml-ruby. Lastly (by a long shot) is REXML. REXML is the only library that does not rely on a native extension.

Currently you can not choose your xml sax handler, and the only we express a gem dependency on is nokogiri.

[Validate]