require 'rexml/document'
include REXML

doc = Document.new(File.new())




doc.each_recursive do |node|
  puts node.attributes[] if node.name == 
end


doc.each_element() {|node| puts node.attributes[]}