Hi all - is there a simple way to dump out an arbitrary SG Node to XML? I looked at getAllMetabut it doesn't give the proper node types and attributes. I'd like to use it for debugging purposes so that I don't have to traverse the SG tree by hand with getChildCount and getChild.
It would be next to trivial writing a recursive function to dump that in XML. This conversion however cannot be 100%, since some field values are composite objects - while XML attributes can only be primitive types (strings, really). In other words, there is no 1:1 mapping between the two; not all roSgNodes can be put back in XML can.
And a notable sore thumb remain the functions, which RSG treats like red-headed stepchild and won't admit even their names.