Sha256: 096d2d10313bb849e99982e59236ea474d8afe332ad4b82f687c12a49f4f6320
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
require 'xml/parser' require 'rforce/soap_pullable' module RForce class SoapResponseExpat include SoapPullable def initialize(content) @content = content end def parse @current_value = nil @stack = [] @parsed = MethodHash.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 end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
aq1018-rforce-0.5.2 | lib/rforce/soap_response_expat.rb |
aq1018-rforce-0.5.1 | lib/rforce/soap_response_expat.rb |
DerGuteMoritz-rforce-0.4.2 | lib/rforce/soap_response_expat.rb |