Hi to all...
I needed to do something similar in an application & used a technique similar to this function.
See @
http://stackoverflow.com/questions/1176453/flex-convert-arraycollection-to-xml
Perhaps this will lead to towards a solution. Cheers //GH