I have an XMLList that I need to make a copy of before I send to the back-end, because if there are any XML errors, I don't want the wrong data on my working XML object. I am trying to use var xmlList:XMLLIst = objectUtil.copy(myXMLList) as XMLList; but it is returning null.
Anyone know how to make a hard copy of an XMLList?
Nevermind. It appears that XMLList has its own copy() function.
Make sure to call call registerClassAlias() on your XMLList before using ObjectUtil.copy(), or it won't work.
Also, XMLList.copy() does not return a "deep" copy.