to_xml with deep associations

RJ wrote:

I am trying to get to_xml to output an xml structure with deep
associations.

I am currently using find with :include => [{:section => :component},
:client] which successfully retrieves all the records however the to_xml
function doesn't allow that.

The stock to_xml function doesn't allow that. You'll have to write
your own XML output function in order to support this.