class RForce::SoapResponseRexml

Turns an XML response from the server into a Ruby object whose methods correspond to nested XML elements.

Public Class Methods

new(content) click to toggle source
# File lib/rforce/soap_response_rexml.rb, line 18
def initialize(content)
  @content = content
end

Public Instance Methods

parse() click to toggle source

Parses an XML string into structured data.

# File lib/rforce/soap_response_rexml.rb, line 23
def parse
  @current_value = nil
  @stack = []
  @parsed = MethodHash.new
  @done = false
  @namespaces = []

  REXML::Document.parse_stream @content, self

  @parsed
end