Parent

Methods

Included Modules

RForce::SoapResponseExpat

Public Class Methods

new(content) click to toggle source

(Not documented)

# File lib/rforce/soap_response_expat.rb, line 8
    def initialize(content)
      @content = content
    end

Public Instance Methods

parse() click to toggle source

(Not documented)

# File lib/rforce/soap_response_expat.rb, line 12
    def parse
      @current_value = nil
      @stack = []
      @parsed = OpenHash.new({})
      @done = false
      @namespaces = []

      XML::Parser.new.parse(@content) do |type, name, data|
        case type
        when XML::Parser::START_ELEM then
          tag_start name, data
        when XML::Parser::CDATA then
          text data
        when XML::Parser::END_ELEM then
          tag_end name
        end

        break if @done
      end

      @parsed
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.