If you hardcode the strings does it work?
I had a similar problem at work - not able to look now - but I found
that casting in the test may help:
e.g.
artData.bios..artistBio.((@s==String(lastName))&&(@f==String(firstName)))
Mendelsohn, Michael wrote:
Hi list...
Why can't I get to the node I want to here:
<art>
<bios>
<artistBio f="Victor" s="Pasmore">blah blah</artistBio>
<artistBio f="Stephen" s="Pentak">more blah blah</artistBio>
</bios>
</art>
var artData:XML represents the above correctly.
var lastName:String = "Pentak";
var firstName:String = "Stephen";
// successfully lists out all the <artistBio> tags
var allBios:XMLList = artData.bios..artistBio;
// thisone is null...why?? Aren't I filtering it correctly?
var thisone:XMLList = artData.bios..artistBio.((@s==lastName)&&(@f==firstName));
Thanks, perplexed, E4x shouldn't be this weird...
- Michael M.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders