Your artistBio closing tag is /artist, making it invalid XML.

Hope it helps!
Alan



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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to