require "rexml/document" doc = REXML::Document.new File.new("dbiconfig.xml") configuration = doc.elements["configuration"] database = configuration.elements["database"] url = database.elements["url"].attributes["value"] puts url
You need to create an account or log in to post comments to this site.