from_xml nested associations?

Does from_xml work with nested associations? Meaning can I pass in a person object with associated addresses and have it correctly rehydrate the ActiveRecord model for person?

Hi,

a quick look at the documented source:

(see http://api.rubyonrails.org/classes/ActiveRecord/Serialization.html#M001138)

128: def from_xml(xml) 129: self.attributes = Hash.from_xml(xml).values.first 130: self 131: end

So it just sets attributes and does nothing with associations, it would appear.

Allan