I played around with this a little today and realized that RemoteObject doesn't support returning a Document class too nicely because the Document implementations (at least the default crimson version) have circular references. This is something we can look to fix in a future updater. In the meantime the question is whether you really want the data represented as XML in the first place. If you are pulling in the data from a database you can simply build a tree of objects and return that to Flex. Flex can take those objects and build a tree out of it as long as you specify the labelField correctly. If you already have XML then I guess what you can do is serialize it into a String, send that across to Flex, then turn that String back into XML using mx.utils.XMLUtil.createXML().
Let me know if this doesn't make sense,
Matt
-----Original Message-----
|
- Re: Populating a Tree at Runtime with a org.w3c.dom. Doc... Matt Chotin
- Re: Populating a Tree at Runtime with a org.w3c.dom... brian_r_christian