I need help with XML attributes

What I’m trying to do is. Have flash loop inside my xml file to find a attributes that will till flash to do THIS or DO THAT.

<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<questions>
<question name = “333. hele?” action="a. one oa ne " fillin=“box” />

<question name = “333. hele?” action="a. one oa ne " fillin=“non_box” />
</questions>

I went flash to find box or non_box.

if box shows up place make TextInput _visible if not TEXTINPUTNAME_visible = false

i was trying to right a function for this to make it much easier.

fillinBlank = function(){
if(fillin == “box”)
IDnumber_visible = true
}else if(fillin == “non_box”){
IDnumber_visible = false
}
}

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
Question = ;
description = ;
blank =
buildQuestion(XMLRoot);
XMLRoot = root.nextSibling;
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
Question* = xmlNode.childNodes*.attributes.name;
description* = xmlNode.childNodes*.attributes.action;
blank* = xmlNode.childNodes.attributes.fillin;