Ruby/XML failo nuskaitymas ir parsinimas

Iš Wikibooks.
Jump to navigation Jump to search
require "rexml/document"
doc = REXML::Document.new File.new("document.xml")
puts doc