Class: Ox::StreamParser

Inherits:
XMLRPC::XMLParser::AbstractStreamParser
  • Object
show all
Defined in:
lib/ox/xmlrpc_adapter.rb

Overview

This is an alternative parser for the stdlib xmlrpc library. It makes use of Ox and is based on REXMLStreamParser. To use it set is as the parser for an XMLRPC client:

require 'xmlrpc/client'
require 'ox/xmlrpc_adapter'
client = XMLRPC::Client.new2('http://some_server/rpc')
client.set_parser(Ox::StreamParser.new)

Defined Under Namespace

Classes: OxParser

Instance Method Summary collapse

Constructor Details

#initializeStreamParser

Create a new instance.



16
17
18
# File 'lib/ox/xmlrpc_adapter.rb', line 16

def initialize
  @parser_class = OxParser
end