to_xml(options = {})
Instance Public methods
Returns a string that represents the array in XML by invoking
to_xml on each element. Active Record collections delegate their representation in
XML to this method.
All elements are expected to respond to to_xml, if any of them
does not then an exception is raised.
The root node reflects the class name of the first element in plural if all
elements belong to the same type and that's not Hash:
customer.projects.to_xml
<?xml version="1