--- In [email protected], "dadrobson" <[EMAIL PROTECTED]> wrote: > > The XML that I am being sent is in the following format: > > <root> > <nodes> > <node id="1"> > <childnodes> > <childnode id="100"></childnode> > <childnode id="101"> > <grandchildnodes> > <grandchildnodes id="1000" /> > <grandchildnodes id="1001" /> > </grandhildnodes> > </childnode> > </childnodes> > </node> > <node id="2"> > <!-- and so on ---> > </nodes> > </root> > > When I bind xml in this format to a Tree control (labelField="@id"), > the collection tags (<childnodes> and <grandchildnodes>) mess it up. > They are displayed, even though they should not be. How do I get the > Tree control to ignore these tags? >
There's a few ways to do this. The one I'd try first is to write a custom ITreeDataDescriptor that only returns the items you want displayed. The default descriptor aggressively displays all XML elements which in this case is including too many. -Michael -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

