xml = %{ }require 'rexml/document'doc = REXML::Document.new xmldoc.elements[1]# => ... >doc.children[0]# => ... >