First, Xml builder is a part of ActiveSupport library. You can find some
documentation in RDocs.
Then, it has method “tag!” that recieves a tag name as first argument:
xml.tag! “itunes:author”, “Test”
And at last, builder has a nice patch, that allows to treat tag name
(the method that you call on “xml” object) as a namespace if first
argument is a symbol (which will become a tag name):
xml.itunes :author, “Test”
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.