private Method

XMLScanParser._parse

There's no documentation for this item.

Source Code

# File rss/xmlscanner.rb, line 15
def _parse
  begin
    if @rss.is_a?(String)
      input = StringIO.new(@rss)
    else
      input = @rss
    end
    scanner = XMLScan::XMLScanner.new(@listener)
    scanner.parse(input)
  rescue XMLScan::Error => e
    lineno = e.lineno || scanner.lineno || input.lineno
    raise NotWellFormedError.new(lineno){e.message}
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.