text() is another way to get the text node. Tracy
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, November 29, 2007 6:06 PM To: [email protected] Subject: RE: [flexcoders] Combobox and XML and label functions I cannot seem to get labels to show up!! I usually use toString() instead of valueOf() ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of kuroiryu42 Sent: Thursday, November 29, 2007 2:51 PM To: [email protected] Subject: [flexcoders] Combobox and XML and label functions I cannot seem to get labels to show up!! When I trace the code it seems like the label function is working great it returns demo as a string yet i see nothing on the comobox. What am I missing here?! sooo frustrated. Another question, how do i get responses to my questions without having to search through the all the groups messages? XML1 = <ListDatasetsResponse> <Datasets> <Dataset id="001"> <DisplayName>demo</DisplayName> <ReportData> <Overview /> <Detail url="/detail1"/> </ReportData> </Dataset> <Dataset id="002"> <DisplayName>demo2</DisplayName> <ReportData> <Overview /> <Detail url="/detail2"/> </ReportData> </Dataset> </Datasets> </ListDatasetsResponse> after the http call comes back i initialize the dataprovider for my combobox dataSetColl = new XMLListCollection( XML1.Datasets.Dataset ); private function boxLabelFuntion(item):String { return XML(item).DisplayName.valueOf(); } <mx:ComboBox id="dataSetBox" dataProvider="{dataSetColl}" labelFunction="boxLabelFuntion" change="dataSetBoxChange(event)" x="0" y="-2" width="201" height="20"></mx:ComboBox> Thanks, Joe

