2 Replies Latest reply on Jul 26, 2007 8:47 AM by BarryGee

    Problem getting XML nodeValue

    BarryGee Level 1
      Hi.

      For some reason i cant get the nodeName or NodeValue for the <link> nodes in my xml file. It would be great if anyone has any suggestions on what im doing wrong.

      Thanks

      Barry.
        • 1. Problem getting XML nodeValue
          BarryGee Level 1
          ok. so with the following code i have managed to get flash to detect the <link> nodeName.

          portfolio
          contact
          interactive
          link
          link
          link
          link
          link
          print
          link
          link
          link
          link
          threeD
          link
          link


          However when i use ;

          trace(section.childNodes[j].nodeValue); instead of trace(section.childNodes[j].nodeName);

          i get a result of 'null' like so;


          portfolio
          contact
          interactive
          null
          null
          null
          null
          null
          print
          null
          null
          null
          null
          threeD
          null
          null

          this is quite annoying as it is the nodeValue that i need. Any suggestions?

          Barry.

          • 2. Re: Problem getting XML nodeValue
            BarryGee Level 1
            Problem solved. Final working code.