Fixing that, your code works (I just added explicit var types). var artData:XML = new XML(<art> <bios> <artistBio f="Peter" s="Agrafiotis">an artist</artistBio> <artistBio f="Larry" s="Denning">He sucks</artistBio> <artistBio f="Susan" s="Agrafiotis">She rocks</artistBio> </bios> </art>); var lastName:String="Agrafiotis"; var a:XMLList = artData.bios.artistBio.(@s==lastName); trace(a.toXMLString()) var b:XMLList = artData.bios.*.(@s==lastName); trace(b.toXMLString()) ;
OUTPUTS: <artistBio f="Peter" s="Agrafiotis">an artist</artistBio> <artistBio f="Susan" s="Agrafiotis">She rocks</artistBio> <artistBio f="Peter" s="Agrafiotis">an artist</artistBio> <artistBio f="Susan" s="Agrafiotis">She rocks</artistBio> Jer _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders