Your xml is malformed.  

<artistBio f="Peter" s="Agrafiotis">an artist</artist> 

Should be: 

<artistBio f="Peter" s="Agrafiotis">an artist</artistBio>

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net


-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn,
Michael
Sent: Friday, February 05, 2010 10:49 AM
To: Flash Coders List
Subject: RE: [Flashcoders] E4X, it's just not my day.

OK, why is this happening?

var artData:XML = new XML(<art>
        <bios>
                <artistBio f="Peter" s="Agrafiotis">an artist</artist>
                <artistBio f="Larry" s="Denning">He sucks</artist>
                <artistBio f="Susan" s="Agrafiotis">She rocks</artist>
        </bios> 
</art>);


var lastName="Agrafiotis";

// undefined
var a = artData.bios.artistBio.(@s==lastName);

// correctly finds the Peter Agrafiotis node 
var b = artData.bios.*.(@s==lastName);

What am I missing in the difference between the two lines?

- Michael M.

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2668 - Release Date: 02/05/10
01:35:00

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to