Mega Code Archive
Categories
/
Ruby
/
XML
Get the first element and first child
xml = %{
} require 'rexml/document' doc = REXML::Document.new xml doc.elements[1] # =>
... > doc.children[0] # =>
... >