From be929ba45a48f0080fcc8b106c37cdc58d42ed8d Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Thu, 1 Mar 2007 14:37:10 +0100 Subject: [PATCH] Add ruby/structure test, passes. --- ruby/structure.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ruby/structure.rb diff --git a/ruby/structure.rb b/ruby/structure.rb new file mode 100644 index 0000000..309237b --- /dev/null +++ b/ruby/structure.rb @@ -0,0 +1,11 @@ +#! /usr/bin/ruby +require "xmltemplate" + +doc = XMLTemplate.process_file("../xml/structure.xml", { + '#outer' => [ + { '#inner' => 'One' }, + { '#inner' => 'Two' }, + { '#inner' => 'Three' }, + ] +}); +print doc.to_s -- 2.39.2