0 Replies Latest reply on Mar 14, 2007 1:21 PM by sean_hess

    mx.controls.Tree

    sean_hess
      Hi, I'd like to set the dataProvider of a tree component to the following xml

      <root>
      <hello label="henry">tsldjkf</hello>
      <monkey label="no">
      <label label="Checking! Subnode">Checking</label>
      <test>Checking2</test>
      </monkey>
      <hello label="bozbo">tsldjkf</hello>
      <hello label="umm">tsldjkf</hello>
      <hello label="asdf">tsldjkf</hello>
      </root>

      I want only nodes with the attribute label to show up, and I want them to show up as nested here. Right now I'm using.

      var myXML:XML = allThatXML;
      dataProvider = myXML..@label;

      But this puts all the items on the first level.

      Thanks!