Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'builder'
- builder = Builder::XmlMarkup.new
- builder.person do |b|
- b.name("Jim")
- b.phone("555-1234")
- end
- # Prints:
- # <person>
- # <name>Jim</name>
- # <phone>555-1234</phone>
- # </person>
Add Comment
Please, Sign In to add comment