2 Replies Latest reply on Oct 12, 2006 5:19 AM by scottpez

    get xml node value when the node name is a variable


      I would like to parse some xml where the name of the node could be dynamic based upon the xml returned from a web service. This is what I'm trying to do:

      return data..campusNS::entity;

      But instead of explicitly saying entity above, I would like to substitute in a variables' string value. Does anyone know how I can do this with actionscript?

      So it would be something like:

      var nodeName:String = "entity";
      return data..campusNS::nodeName; //where nodeName is the variable above