# Simple Loading XML into Flash question

**URL:** https://forum.kirupa.com/t/simple-loading-xml-into-flash-question/285062
**Category:** flash
**Created:** [March 26, 2009, 4:42pm UTC](https://forum.kirupa.com/t/simple-loading-xml-into-flash-question/285062 "2009-03-26T16:42:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mnat](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mnat](https://forum.kirupa.com/u/mnat)
#### Post date: [March 26, 2009, 4:42pm UTC](https://forum.kirupa.com/t/simple-loading-xml-into-flash-question/285062/1 "2009-03-26T16:42:31Z")

</div>

I am trying to load XML into Flash and then put the node values into 2 usable flash variables.  
I then want to use the variables in a conditional.

My simple XML:

```auto
<?xml version ="1.0"?> 
<data>
<today>true</today)
<number>4</number>
</data>

```

I would like to put the today and number tags nodes into two variables:  
var today  
var number

I tried a few things including:

```auto

var k:Number = xmlDoc_xml.firstChild.firstChild.nextSibling.firstChild.nodeValue;
var day:Boolean = xmlDoc_xml.firstChild.firstChild.firstChild.nodeValue;

```

but I can’t seem get the value to store correctly. Can some one tell me what I’m doing wrong?

Thanks
