1 Reply Latest reply on Mar 21, 2007 11:18 AM by EliteScientist

    FETCH XML USING FLEX

    Flex_Coder111
      Trying to display XML dynamically without knowing its structure in other words...

      Suppose, I have (dynamically generated) XML whose structure is unknown. Now, I want to display contents..

      So the question is how do i get the structure of the XML and display the contents
        • 1. FETCH XML USING FLEX
          EliteScientist Level 1
          iterate through each Childnode and each their Childnodes to discover its structure...

          I.E.

          for each (var child:XMLNode in xml.childNodes) {
          .........
          for each (var childTwo:XMLNode in child.childnodes) {
          .......
          }

          }

          or better yet create a Recursive function which can iterate through the entire depth...