Class: XMLRPC::XMLParser::LibXMLStreamParser::LibXMLStreamListener

Inherits:
Object
  • Object
show all
Includes:
StreamParserMixin
Defined in:
lib/xmlrpc/parser.rb

Instance Attribute Summary

Attributes included from StreamParserMixin

#fault, #method_name, #params

Instance Method Summary collapse

Methods included from StreamParserMixin

#character, #endElement, #initialize, #startElement

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*a) ⇒ Object



616
617
# File 'lib/xmlrpc/parser.rb', line 616

def method_missing(*a)
end

Instance Method Details

#on_end_element_ns(name, prefix, uri) ⇒ Object



609
610
611
# File 'lib/xmlrpc/parser.rb', line 609

def on_end_element_ns(name, prefix, uri)
  endElement(name)
end

#on_start_element_ns(name, attributes, prefix, uri, namespaces) ⇒ Object



605
606
607
# File 'lib/xmlrpc/parser.rb', line 605

def on_start_element_ns(name, attributes, prefix, uri, namespaces)
  startElement(name)
end

#parse(str) ⇒ Object



619
620
621
622
623
# File 'lib/xmlrpc/parser.rb', line 619

def parse(str)
  parser = LibXML::XML::SaxParser.string(str)
  parser.callbacks = self
  parser.parse()
end