#!/usr/bin/env ruby require 'rubygems' require 'builder' include Builder document = XmlMarkup.new(:target => $stdout, :indent => 1) document.instruct! document.comment! "our good friend Mondo" document.name( :lang => "en" ) { document.given "A", :nickname => "false" document.family "B" }