# I need help with XML attributes

**URL:** <https://forum.kirupa.com/t/i-need-help-with-xml-attributes/216007>\
**Category:** flash\
**Created:** [February 12, 2007, 9:58pm UTC](https://forum.kirupa.com/t/i-need-help-with-xml-attributes/216007 "2007-02-12T21:58:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Motorman007](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@Motorman007](https://forum.kirupa.com/u/Motorman007)\
**Post date:** [February 12, 2007, 9:58pm UTC](https://forum.kirupa.com/t/i-need-help-with-xml-attributes/216007/1 "2007-02-12T21:58:39Z")

</div>

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;
