# For the XML Genius'

**URL:** <https://forum.kirupa.com/t/for-the-xml-genius/237404>\
**Category:** flash\
**Created:** [August 30, 2007, 12:07am UTC](https://forum.kirupa.com/t/for-the-xml-genius/237404 "2007-08-30T00:07:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enigmaz19b4](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@enigmaz19b4](https://forum.kirupa.com/u/enigmaz19b4)\
**Post date:** [August 30, 2007, 12:07am UTC](https://forum.kirupa.com/t/for-the-xml-genius/237404/1 "2007-08-30T00:07:25Z")

</div>

Hey guys, i want to make flash read the xml and pull out the data so that it shows up dynamically in flash. I have done this before but im having trouble with this type of xml file. See below.

What i would like to do is say for instance i want to pull three different types of data.  
“Outage\_2\_Staff” , “Residential\_3\_Staff”, and “Arrangements\_38\_Staff”. then i want to take the \<value\> & \<color\> data and output it through dynamic text. how can i tell flash what type of data to pull when all the parent names are the same.

P.S. i can’t change the xml data. so im stuck with this format. ☹  
if someone can post an example of a working script that would be very awesome. thanks guys!

\<RealTimeData\>  
\<RTData\>  
\<Name\>Outage\_2\_Staff\</Name\>  
\<Value\>128\</Value\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\<RTData\>  
\<Name\>Commercial\_94\_Staff\</Name\>  
\<Value\>15\</Value\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\<RTData\>  
\<Name\>Residential\_3\_Staff\</Name\>  
\<Value\>10\</Value\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\<RTData\>  
\<Name\>Arrangements\_38\_Staff\</Name\>  
\<Value\>94\</Value\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\<RTData\>  
\<Name\>Outage\_2\_AVL\</Name\>  
\<Value\>0\</Value\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\<RTData\>  
\<Name\>Commercial\_94\_AVL\</Name\>  
\<Value\>1\</Value\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\<RTData\>  
\<Name\>Residential\_3\_AVL\</Name\>  
\<Value /\>  
\<Color\>Green\</Color\>  
\</RTData\>  
\</RealTimeData\>
