class XSD::XMLParser::Nokogiri

end

obj.getLatestByRoute(obj.getAgencies, 8).each do |event|
obj = AvlPortType.new
require ‘defaultDriver’
require ‘xsd/xmlparser/nokogiri’
require ‘nokogiri’
gem ‘soap4r’
require ‘rubygems’
Example (using UW ITS Web Services):
required to use Nokogiri as the XML parser.
will use Nokogiri as it’s XML parser. No other changes should be
’xsd/xmlparser/nokogiri’ in your soap4r applications, and soap4r
Nokogiri may be used as the XML parser in soap4r. Simply require
Nokogiri XML parser for soap4r.
##
:nodoc:
:nodoc:

def cdata_block string

Handle cdata_blocks containing +string+
##
def cdata_block string
  characters string
end

def do_parse string_or_readable

Start parsing +string_or_readable+
##
def do_parse string_or_readable
  @parser.parse(string_or_readable)
end

def error msg

Handle errors with message +msg+
##
def error msg
  raise ParseError.new(msg)
end

def initialize host, opt = {}

Create a new XSD parser with +host+ and +opt+
##
def initialize host, opt = {}
  super
  @parser = ::Nokogiri::XML::SAX::Parser.new(self, @charset || 'UTF-8')
end

def start_element name, attrs = []

Handle the start_element event with +name+ and +attrs+
##
def start_element name, attrs = []
  super(name, Hash[*attrs])
end