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



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

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

#endElement(name) ⇒ Object



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

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

#listener=(listener) ⇒ Object



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

def listener=(listener)
  @listener = listener
end

#processingInstruction(target, content) ⇒ Object



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

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

#startElement(name, attrs) ⇒ Object



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

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

#xmlDecl(version, encoding, standalone) ⇒ Object



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

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