class Nokogiri::XML::Reader

def attribute_nodes

Get a list of attributes for the current node
##
def attribute_nodes
  nodes = attr_nodes
  nodes.each { |v| v.instance_variable_set(:@_r, self) }
  nodes
end