Reputation: 4627
a simple little question. I have an xml file and im putting this xml file in an XML object
var receivedXML:XML
In some function, I have:
var xmlList:XMLList = new XMLList();
xmlList = receivedXML.some.attributes.here;
object.functionDoStuff = xmlList;
The function functionDoStuff takes xmlList as its argument:
function functionDoStuff(xmlList:XMLList) {}
When does receivedXML get parsed, is it when we assign it to xmlList, or is it when it gets used in the next instruction by the function functionDoStuff?
Upvotes: 0
Views: 253
Reputation: 7895
It isn't parsed at either point. It is parsed when receivedXML was created. After that point it is an 'object' and not XML.
Upvotes: 1