0 Replies Latest reply on Apr 3, 2007 11:04 AM by erikrodriguez

    XML Node Values

    erikrodriguez
      I am attempting to parse the values of several XML nodes. The code I am using is similar to that listed below:

      1) var childItems:Array = current_xml.firstChild.childNodes;
      2) my_txt.text += childItems[2].firstChild.firstChild.nodeValue + "\n";
      3) my_txt.text += childItems[2].firstChild.childNodes[1].nodeName;

      Line 2 will give the correct node value, but line 3 will give me an undefined value. I tried this with several nodes, but all give the the same result. Only the first child will parse correctly. The XML file is formatted correctly, so what else can be the issue?