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



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

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

#endElement(name) ⇒ Object



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

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

#listener=(listener) ⇒ Object



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

def listener=(listener)
  @listener = listener
end

#processingInstruction(target, content) ⇒ Object



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

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

#startElement(name, attrs) ⇒ Object



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

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

#xmlDecl(version, encoding, standalone) ⇒ Object



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

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