Using a variable when parsing an XML tree

Hey,

 I'm having a bit of trouble using a variable when parsing an XML tree.  I'm attempting to do something like the following:

var $album:String = "people";

$myXML.$album.photo[1];

 Of course it thinks I'm looking for an XML node named "$album" when in fact I'm looking for an XML node named "people".   Any help?

thanks.