Class: REXML::Parsers::BaseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/jabber4r/rexml_1.8_patch.rb

Instance Method Summary collapse

Instance Method Details

#has_next?Boolean

Returns true if there are more events. Synonymous with !empty?

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/jabber4r/rexml_1.8_patch.rb', line 6

def has_next?
  return true if @closed # THIS WAS ADDED TO FIX PROBLEM
  @source.read if @source.buffer.size==0 and !@source.empty?
  (!@source.empty? and @source.buffer.strip.size>0) or @stack.size>0 or @closed
end