Flowdock
method

parse

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::Parser
parse(string_or_readable) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/soap/parser.rb, line 84
  def parse(string_or_readable)
    @parsestack = []
    @lastnode = nil

    @handlers.each do |uri, handler|
      handler.decode_prologue
    end

    @parser.do_parse(string_or_readable)

    unless @parsestack.empty?
      raise FormatDecodeError.new("Unbalanced tag in XML.")
    end

    @handlers.each do |uri, handler|
      handler.decode_epilogue
    end

    @lastnode
  end
Register or log in to add new notes.