# XML tag variable name

**URL:** <https://forum.kirupa.com/t/xml-tag-variable-name/314214>\
**Category:** flash\
**Created:** [September 21, 2010, 9:23pm UTC](https://forum.kirupa.com/t/xml-tag-variable-name/314214 "2010-09-21T21:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilky](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@Wilky](https://forum.kirupa.com/u/Wilky)\
**Post date:** [September 21, 2010, 9:23pm UTC](https://forum.kirupa.com/t/xml-tag-variable-name/314214/1 "2010-09-21T21:23:04Z")

</div>

Hi there, this may be a noob question. I have this part of XML:

\<news\>  
\<image src="…"\>  
\</news\>  
\<about\>  
\<image src="…"\>  
\</about\>

and I have this function which passes the name of the section I would like to use (“news”, “about”, etc.):

public function LoadSlideshow(category:String) {  
intSlideCount = configXML.(category).slide.length();  
}

Since “category” is a variable, this statement doesn’t seem to work. Need some guidance, Thanks!
