Class XMLRPC::XMLParser::XMLScanStreamParser::XMLScanParser
In: xmlrpc/parser.rb
Parent: Object

Methods

Included Modules

StreamParserMixin

Constants

Entities = { "lt" => "<", "gt" => ">", "amp" => "&", "quot" => '"', "apos" => "'"

External Aliases

startElement -> on_stag
endElement -> on_etag

Public Instance methods

[Source]

# File xmlrpc/parser.rb, line 780
        def method_missing(*a)
        end

[Source]

# File xmlrpc/parser.rb, line 759
        def on_cdata(str)
          character(str)
        end

[Source]

# File xmlrpc/parser.rb, line 755
        def on_chardata(str)
          character(str)
        end

[Source]

# File xmlrpc/parser.rb, line 772
        def on_charref(code)
          character(code.chr)
        end

[Source]

# File xmlrpc/parser.rb, line 776
        def on_charref_hex(code)
          character(code.chr)
        end

[Source]

# File xmlrpc/parser.rb, line 763
        def on_entityref(ent)
          str = Entities[ent]
          if str
            character(str)
          else
            raise "unknown entity"
          end
        end

[Source]

# File xmlrpc/parser.rb, line 748
        def on_stag_end(name); end

[Source]

# File xmlrpc/parser.rb, line 750
        def on_stag_end_empty(name)
          startElement(name)
          endElement(name)
        end

[Source]

# File xmlrpc/parser.rb, line 740
        def parse(str)
          parser  = XMLScan::XMLParser.new(self)
          parser.parse(str)
        end

[Validate]