Got it thanks. I was wrongly under the assumption that I could simply
create an XMLNode with the same value of one contained in the XMLList.

--- In [email protected], Alex Harui <[EMAIL PROTECTED]> wrote:
>
> 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.
>


Reply via email to