1 Reply Latest reply on Jan 30, 2008 10:28 PM by rmalired

    xml tree


      what i was trying to do is there is an xml like the below shown( a sample part not completely)
      <node_name>node content </node_name>

      and i used the function as below which return a string of item.@label

      what should be the return type so i get the node name rather than node content.

      fix label is the function i am calling from the tree tag labelfunc

      I want to see my output like this


      but what i was seeing is as below

      in a tree format:
      can any one guide me what should i put in the return statement of the function so that it shows the output in the my desired format:

      i am using a different xml with a size of 89 kb, first when it load it shows the first tag when i click then it shows the error code 1009 wierd. does size matters.
        • 1. Re: xml tree
          rmalired Level 1

          use this line return item.@localName() will give you the node name:

          now the problem is it returns the null value for the node value. need to figure out.

          i had still the wierd problem that a file with 89 kb does not work: it gives the exception after showing a few nodes;

          TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at mx.controls.treeClasses::TreeItemRenderer/commitProperties()
          at mx.core::UIComponent/validateProperties()
          at mx.managers::LayoutManager/validateClient()
          at mx.controls::List/makeRowsAndColumns()
          at mx.controls.listClasses::ListBase/updateDisplayList()
          at mx.controls::List/updateDisplayList()
          at mx.controls::Tree/updateDisplayList()
          at mx.core::UIComponent/validateDisplayList()
          at mx.managers::LayoutManager/validateDisplayList()
          at mx.managers::LayoutManager/doPhasedInstantiation()