Is ActiveResource the way to go?

Hi

I am building a platform where I need to communicate between Rails
instances (as well as Java applications) and I am thinking about using
ActiveResource. However I run into some problems with “Not all
elements respond to to_xml” since my XML format is nested and Array
has no to_xml method.

Are there any alternatives to using ActiveResource out there that
handles this more gracefully or are there a good way to get around
this? I started building custom accessor methods, redefining
uppdate_attributes and so on but that quickly becomes unwieldy.

Any tips welcome.

Regards

Erik