Using AdvancedDataGrid to show hierarchical data
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:XMLList id="myXML"> <friends name="Friends"> <friend name="A" email="a@domain.com" /> <friend name="B" email="b@domain.com" /> <friend name="C" email="c@domain.com" /> </friends> <families name="Family"> <family name="D" email="d@domain.com" /> <family name="E" email="e@domain.com" /> </families> </mx:XMLList> <mx:HierarchicalData source="{myXML}" id="myHD" /> <mx:AdvancedDataGrid dataProvider="{myHD}" width="300"> <mx:columns> <mx:AdvancedDataGridColumn dataField="@name" headerText="Contacts" /> <mx:AdvancedDataGridColumn dataField="@email" headerText="Email" /> </mx:columns> </mx:AdvancedDataGrid> </mx:Application>