X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=ruby%2Fattribute-empty.rb;fp=ruby%2Fattribute-empty.rb;h=0476b9dd78309c2e56989fc3f2cc6b8a0a2e74a8;hb=7d86bc42d79ffdf9a9bd601716c2f832a123a1ce;hp=0000000000000000000000000000000000000000;hpb=0b5e750eae0d8d58ae293beeaf29368431d5b618;p=xml-template diff --git a/ruby/attribute-empty.rb b/ruby/attribute-empty.rb new file mode 100644 index 0000000..0476b9d --- /dev/null +++ b/ruby/attribute-empty.rb @@ -0,0 +1,8 @@ +#! /usr/bin/ruby +require "xmltemplate" + +doc = XMLTemplate.process_file("../xml/clone.xml", { + 'color' => 'blue', + '#things' => [] +}); +print doc.to_s