0 Replies Latest reply on May 23, 2007 1:54 PM by xrum

    Tree and XML

    xrum Level 2
      the only examples i found online for tree involve a XMLList.
      is it possible to use an XML to populate it?

      for example, my XML looks like this:

      [code]
      [Bindable]
      private var MyCat:XML =
      <categories>
      <category ID="0">
      <title>Category 1</title>
      <link ID2="0">
      <linkTitle>Link 1 Title</linkTitle> <linkURL> http://www.link1.com</linkURL>
      </link>
      </category>

      <category ID="1">
      <title>Categor 2 </title>
      <link ID2="0">
      <linkTitle>Link1 title</linkTitle> <linkURL> http://www.Line 1 URL.com</linkURL>
      </link>
      <link ID2="1">
      <linkTitle>Link2 title</linkTitle> <linkURL> http://www.Line 2 URL.com</linkURL>
      </link>
      </category>
      </categories>
      [/code]


      Thanks in advance!