2 Replies Latest reply on May 20, 2011 12:37 AM by Flex harUI

    Simple XML question

    alinhawaii

      I have a simple XMList called myList that is equal to

       

      <OutgoingLinks>
        <Link ConversationID="1" OriginDialogID="0" DestinationDialogID="101" IsConnector="false"/>
        <Link ConversationID="1" OriginDialogID="0" DestinationDialogID="173" IsConnector="false"/>
        <Link ConversationID="1" OriginDialogID="0" DestinationDialogID="3" IsConnector="false"/>
      </OutgoingLinks>

       

      In actionscript when I do a

      trace("myList.length()="+myList.length());

      I get 1 and I thought I would get 3 but I'm thinking it's one due to the empty elements.

       

      trace("myList.child(0)="+myList.child(0));

      gives me nothing

       

      Since I cannot access the children tags how would I access each of the Link Tags

      and it's respective attributes(ex. 1st link with DestinationDialogID=101)?


      Do I need to convert this XMList into an array?