Hi all, I've been looking at some options for getting a from_xml implementation working with ActiveRecord based classes. I had a few issues and couldn't resolve them, so I rolled my own. Seems to work well for simple parent > child relationships, including collections. I thought I'd post in case anyone else was similarly afflicted. Here's the blog post to get the code. Please add comments to let me know what you think. (Or to tell me I'm an idiot and missed something!) http://web.me.com/adamfowleruk/adamsapple/Blog/Ent... Regards, Adam.
on 2009-02-06 19:29
on 2009-02-06 22:18
Oh BTW just added recursive to_xml too, which supports ActiveRecord::Base objects http://web.me.com/adamfowleruk/adamsapple/Blog/Ent... Adam.