0 Replies Latest reply on Aug 14, 2007 4:02 AM by P Steven

    dynamic creation of xml node

    P Steven Level 1
      Hi there

      I can't quite figure out how to add a node based on a passed variable value

      If I hard code it as can be seen in the line of code commented out - it works.
      But if I try to pass a string, it doesn't work

      public function addNodeToXML(passedNodeName:String):void {

      //_qualificationSummaryScreenXML.appendChild(<pupil />);


      This is the call to the function

      addNodeToXML("<pupil />");

      Would be very grateful if someone can help me fix this