Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • xmlrpc/parser.rb

Parent

Methods

XMLRPC::XMLParser::NQXMLStreamParser::XMLRPCParser

Public Instance Methods

parse(str) click to toggle source
 
               # File xmlrpc/parser.rb, line 598
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