# Accessing data in xml through flash

**URL:** <https://forum.kirupa.com/t/accessing-data-in-xml-through-flash/155552>\
**Category:** Uncategorized\
**Created:** [July 18, 2005, 8:34pm UTC](https://forum.kirupa.com/t/accessing-data-in-xml-through-flash/155552 "2005-07-18T20:34:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crtvgrndwrks](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@crtvgrndwrks](https://forum.kirupa.com/u/crtvgrndwrks)\
**Post date:** [July 18, 2005, 8:34pm UTC](https://forum.kirupa.com/t/accessing-data-in-xml-through-flash/155552/1 "2005-07-18T20:34:14Z")

</div>

for those of you who use xml in flash, let’s say you use the following xml document:

\<main\>  
\<titlebar\>  
\<filename\>something.jpg\</filename\>  
\<text\>This is text in the titlebar\</text\>  
\</titlebar\>  
\<body\>  
\<filename\>somethingelse.jpg\</filename\>  
\</body\>  
\</main\>

and you wanted to access the value in main/titlebar/text… how would you go about it? do you have to use the nextSibling command and a for loop to count down until you get to the one you want?
