Hello,
I have the two following lines of code:
xml = new XML(e.target.data);
var il:XMLList = xml.image.description;
This two lines work perfect, but only if you know what the name of the ‘description’ node is. I would like to be able to take do something similar to this: (I know it won’t work, but I’m trying to illustrate a point here :ch:)
var nodeName:String = new String("description");
xml = new XML(e.target.data);
var il:XMLList = xml.image.nodeName;
The reason I’d be able to do this, is because it’s in a class, and when this class is referenced, the user can specify the name of the node in his/her XML file. Thanks so much in advance!