require 'xtemplate' require 'xtemplate/yaml' doc = XTemplate::XMLDocument.new(< &name1 27 &name2 20 EOS print(doc.to_s,"\n\n") print(doc.to_yaml,"\n\n") print(doc.to_s,"\n")