Dynamic field values for parsing XML

Hello, All-

I’ve been using Kirupa’s XML tutorial ( kirupa.com - Using XML in Flash CS3/AS3 - Page 1) to parse some information out of an XML object, but I’m stumped on how to access node names dynamically.

Specifically, here’s the bit of code I’m trying to implement (short and sweet):

var currentCategory :String= “[COLOR=“Lime”]proCat[/COLOR]”+MovieClip(root).Global.categoryIndex;
trace ("Current Category for XML Parsing = "+currentCategory);
var proList:XMLList = MovieClip(root).Global.matchmakerItems.taxPros.taxPro.([COLOR=“Red”]currentCategory[/COLOR] == “true”);

I have a number of nodes for each taxPro named:

<proCat0>true</proCat0>
<proCat1>false</proCat1>
<proCat2>true</proCat2>, etc…

What I’m trying to do is access them through a dynamic variable as highlighted in red above.

If I hard code …taxPro.(proCat2 == “true”); all works great. However, I’m unable to make the targeted sub-node call with a dynamic variable.

If anyone can point to my shortsightedness and help me out of this funk I’d be greatly appreciative.

Thanks in advance,
SteveK