123456789_123456789_123456789_123456789_123456789_

Class: RSS::REXMLParser

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BaseParser
Instance Chain:
self, BaseParser
Inherits: RSS::BaseParser
Defined in: lib/rss/rexmlparser.rb

Class Attribute Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

BaseParser - Inherited

Constructor Details

This class inherits a constructor from RSS::BaseParser

Class Method Details

.listener

[ GitHub ]

  
# File 'lib/rss/rexmlparser.rb', line 9

def listener
  REXMLListener
end

Instance Method Details

#_parse (private)

[ GitHub ]

  
# File 'lib/rss/rexmlparser.rb', line 15

def _parse
  begin
    REXML::Document.parse_stream(@rss, @listener)
  rescue RuntimeError => e
    raise NotWellFormedError.new{e.message}
  rescue REXML::ParseException => e
    context = e.context
    line = context[0] if context
    raise NotWellFormedError.new(line){e.message}
  end
end