class Nokogiri::XML::Reader

ignored. If a syntax error is encountered during parsing, an exception will be raised.
⚠ libxml2 does not support error recovery in the Reader parser. The ‘RECOVER` ParseOption is
need during a single iteration.
document, you must parse the document again. It may be better to capture all information you
⚠ Nokogiri::XML::Reader#each can only be called once! Once the cursor moves through the entire
end
puts node.name
# node is an instance of Nokogiri::XML::Reader
reader.each do |node|
eoxml
</x>
<tenderlove:foo awesome=’true’>snuggles!</tenderlove:foo>
<x xmlns:tenderlove=‘tenderlovemaking.com/’>
reader = Nokogiri::XML::Reader(<<-eoxml)
Here is an example of usage:
parser, but do not want to write a Document handler.
The Reader parser might be good for when you need the speed and low memory usage of the SAX
Reader is given an XML document, and yields nodes to an each block.
Nokogiri::XML::Reader parses an XML document similar to the way a cursor would move. The
##

def attributes

(Hash) Attribute names and values, and namespace prefixes and hrefs.
[Returns]

This is the union of Reader#attribute_hash and Reader#namespaces

Get the attributes and namespaces of the current node as a Hash.
def attributes
  attribute_hash.merge(namespaces)
end

def each

Move the cursor through the document yielding the cursor to the block
##
def each
  while (cursor = read)
    yield cursor
  end
end

def initialize(source, url = nil, encoding = nil) # :nodoc:

:nodoc:
def initialize(source, url = nil, encoding = nil) # :nodoc:
  @source   = source
  @errors   = []
  @encoding = encoding
end