Is there a way to generate xml tags with dashes in builer?
Imagine I want to generate the following XML:
<ninja-programmer>
Jon Skeet
</ninja-programmer>
I am not able to do it like:
require 'builder'
data = ''
x = Builder::XmlMarkup.new(:target => data, :indent => 2)
x.instruct!
x.ninja-programmer "Jon Skeet"
That would confuse the parser so, how can I do it?
Thanks