class Nokogiri::XML::Reader

def attributes

def attributes
  Hash[*(attribute_nodes.map { |node|
    [node.name, node.to_s]
  }.flatten)].merge(namespaces || {})
end

def each(&block)

def each(&block)
  while node = self.read
    block.call(node)
  end
end

def initialize url = nil, encoding = nil

def initialize url = nil, encoding = nil
  @errors = []
  @encoding = encoding
end