Your findValue is an XML node that is not a member of the XMLList so it isn't contained in there. The XMLList contains a different unique XML node with the same value., but isn't the same node.
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of sleblang Sent: Thursday, September 11, 2008 2:34 PM To: [email protected] Subject: [flexcoders] Searching collections using contains() I am searching an XMLListCollection using XMLListCollection.contains(). The XMLListCollection is also filtered. With that said, I am unable to have it return a 'true' value even if I hardcode the 'contains' value so that I (should be) forcing a 'true' value. Per the Help Docs, I have even tried removing the filterFunction so that I should get a 'true' result. Here's my code to assist: // XMLListCollection (projectData_xlc) <project date="8/30/08">Quarter 3</project> <project date="8/30/08">Quarter 2</project> <project date="8/30/08">Quarter 4</project> projectData_xlc.filterFunction = null; var findValue:XML = new XML("Quarter 3") // force value to be true trace(projectData_xlc.contains(findValue)) // RETURNS FALSE ! Any suggestions on where the issue might be? Thanks for any and all replies.

