Sha256: 71e89c13b7c38347b13097889e6ecf5f6cf4586cd49e62941e4ed420f7dcc74b
Contents?: true
Size: 676 Bytes
Versions: 4
Compression:
Stored size: 676 Bytes
Contents
require 'xml/parser' require 'rforce/soap_pullable' module RForce class SoapResponseExpat include SoapPullable include MethodKeys def initialize(content) @content = content end def parse @current_value = nil @stack = [] @parsed = {} @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
4 entries across 4 versions & 3 rubygems