How do I add a namespace to the root node using the Builder? The
following is currently impossible:
doc = Nokogiri::XML::Builder.new { |xml|
xml['my_ns'].root('xmlns:my_ns' => "
http://example.com"){
...
}
}.doc
I would like to be able to create something like this:
<my_ns:root xmlns:my_ns="
http://example.com">
...
</my_ns:root>
Is this implemented in some other way?