Class: RSS::REXMLLikeXMLParser

Inherits:
XML::Parser show all
Includes:
XML::Encoding_ja
Defined in:
lib/rss/xmlparser.rb

Constant Summary

Constants inherited from XML::Parser

XML::Parser::Error

Instance Method Summary collapse

Instance Method Details

#character(data) ⇒ Object



48
49
50
# File 'lib/rss/xmlparser.rb', line 48

def character(data)
  @listener.text(data)
end

#endElement(name) ⇒ Object



44
45
46
# File 'lib/rss/xmlparser.rb', line 44

def endElement(name)
  @listener.tag_end(name)
end

#listener=(listener) ⇒ Object



36
37
38
# File 'lib/rss/xmlparser.rb', line 36

def listener=(listener)
  @listener = listener
end

#processingInstruction(target, content) ⇒ Object



56
57
58
# File 'lib/rss/xmlparser.rb', line 56

def processingInstruction(target, content)
  @listener.instruction(target, content)
end

#startElement(name, attrs) ⇒ Object



40
41
42
# File 'lib/rss/xmlparser.rb', line 40

def startElement(name, attrs)
  @listener.tag_start(name, attrs)
end

#xmlDecl(version, encoding, standalone) ⇒ Object



52
53
54
# File 'lib/rss/xmlparser.rb', line 52

def xmlDecl(version, encoding, standalone)
  @listener.xmldecl(version, encoding, standalone == 1)
end