Of course doesn't work since it doesn't like the colon.
How can I get this to work? I haven't had a lot of luck with the builder
doco so any help is appreciated very much.
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"