0 Replies Latest reply on Jun 15, 2011 11:09 AM by im_just_here

    Can you use a variable to look up XML nodes?


      I want to do something like the following.


      var name:String = owner.name;
      var greeting:String = copyXML..{name}.Greeting;


      Is this possible or do I have to loop through the xml until something matches?




      var greeting:String = (copyXML.elements(owner.name).Greeting);


      this seems to work. Is there a better way?