123456789_123456789_123456789_123456789_123456789_

Class: XMLRPC::XMLParser::NQXMLStreamParser::XMLRPCParser

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
Inherits: Object
Defined in: lib/xmlrpc/parser.rb

Instance Attribute Summary

Instance Method Summary

Instance Method Details

#parse(str)

[ GitHub ]

  
# File 'lib/xmlrpc/parser.rb', line 624

def parse(str)
  parser = NQXML::StreamingParser.new(str)
  parser.each do |ele|
    case ele
    when NQXML::Text
      @data = ele.text
      #character(ele.text)
    when NQXML::Tag
      if ele.isTagEnd
        endElement(ele.name)
      else
        startElement(ele.name, ele.attrs)
      end
    end
  end # do
end