XML: Pick and choose specific data and disregard other

Yup, I’m really a complete nOOb when it comes to Flash and / or XML but I managed to write some PHP which writes some XML including the following:

<?xml version=“1.0”?>
<subjects>
<subject>
<ID>1</ID>
<menu_name_ice>Bóndabærinn</menu_name_ice>
<menu_name_eng>The farm</menu_name_eng>
<menu_name_ger>Der Bauernhof</menu_name_ger>
<menu_name_fre>La ferme</menu_name_fre>
<position>1</position>
<visible>1</visible>
</subject>
etc. etc…
</subjects>

and what I need to do is sort of like this:

function ParseSubjects(subjectsInput:XML):void {
var visibleList:XMLList = subjectsInput.subject.visible;
for each (var visibleElement:XML in visibleList){
if (visibleElement == “1”){

		And well... this is where I'm stumped.  What I need to do is read "position" and "menu_name_ice" (or in fact any of the "menu_name_*" but let's start with the first one) and, using Kirupa's excellent tutorial, that worked just fine except I need to read **just one** "subject" at a time, not all of them (there are plenty more, all in the same syntax).

I’m using “position” to determine the posting order of “menu_name_*” to the stage and “visible” to determine whether or not to do so.
Any and all help would be greatly appreciated, including a nudge or a pointing to a tutorial that deals with this specific problem. :slight_smile: