Sha256: 363f3e975bb2a2259dcb8107a1745cffb150f3bca459ea5519c72fdc81b5898b
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
require 'rexml/document' require 'rexml/xpath' require 'rforce/soap_pullable' module RForce # Turns an XML response from the server into a Ruby # object whose methods correspond to nested XML elements. class SoapResponseRexml include SoapPullable %w(attlistdecl cdata comment doctype doctype_end elementdecl entity entitydecl instruction notationdecl xmldecl).each do |unused| define_method(unused) {|*args|} end def initialize(content) @content = content end # Parses an XML string into structured data. def parse @current_value = nil @stack = [] @parsed = OpenHash.new({}) @done = false @namespaces = [] REXML::Document.parse_stream @content, self @parsed end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rforce-raygao-1.0.0 | lib/rforce/soap_response_rexml.rb |