Patch review requested: Add XML namespace prefix to AR#to_xml

Hi, could someone please have a look at this patch:

[PATCH] Add XML namespace prefix option to ActiveRecord #to_xml http://dev.rubyonrails.org/ticket/9061

Proposed syntax is as follows:

firm.to_xml :namespace=> {:prefix => "contact", :name => "http:// xml.rubyonrails.org/contact"}

<firm xmlns:contact="http://xml.rubyonrails.org/contact&quot;&gt;   # ... attributes ... </firm>

This change does not break the existing API.

Patch updated so that multiple namespaces can be passed in an Array:

firm.to_xml :namespace => ["http://xml.rubyonrails.org/contact&quot;, {:prefix=>'isbn', :name=>'urn:ISBN:0-395-36341-6'}]

<firm xmlns="http://xml.rubyonrails.org/contact&quot; xmlns:isbn="urn:ISBN: 0-395-36341-6">   # ... normal attributes as shown above ... </firm>

http://dev.rubyonrails.org/ticket/9061