2 Replies Latest reply on Aug 4, 2006 5:42 AM by AttackingPencil

    XML nodeType/nodeValue issues

    AttackingPencil
      I'm trying to load in an XML file generated by Excel but for some reason the nodes in the XML are being read as element nodes rather than as text nodes
      EXAMPLE:
      the xml file looks like:
      <Record>
      <Id>270</Id>
      <OID_>146</OID_>
      <POINTID>270</POINTID>
      <ARTIST>George Frederick Watts</ARTIST>
      <ADDRESS>1 Clipstone Street</ADDRESS>
      <STARTDATE>1/1/1838</STARTDATE>
      <STARTNUM>1838</STARTNUM>
      <ENDDATE>1/1/1838</ENDDATE>
      <ENDNUM>1838</ENDNUM>
      <LAT>529028.485878</LAT>
      <LON>181869.080544</LON>
      </Record>

      and my Actionscript looks like:
      item.toolTip.hotspotText.text = hotspots_xml.firstChild.childNodes[1].childNodes .childNodes[3].nodeValue;

      that actionscript calls the <ARTIST> node (as you can see I've omitted a bunch of extraneous XML)
      However, it returns "null"

      any ideas?