# Using a varible in XML nodes

**URL:** <https://forum.kirupa.com/t/using-a-varible-in-xml-nodes/281490>\
**Category:** flash\
**Created:** [February 9, 2009, 10:09pm UTC](https://forum.kirupa.com/t/using-a-varible-in-xml-nodes/281490 "2009-02-09T22:09:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonlijw](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jasonlijw](https://forum.kirupa.com/u/jasonlijw)\
**Post date:** [February 9, 2009, 10:09pm UTC](https://forum.kirupa.com/t/using-a-varible-in-xml-nodes/281490/1 "2009-02-09T22:09:39Z")

</div>

I just wanted to say thanks for all of your help so far, lifesavers!

Can I call a varible name in place of a node name in an XML call?

windowXML

\<type title=“SLIDER”\>  
\<style title=“XO SLIDER”\>  
\<window\>  
\<model\>2020\</model\>  
\<base\>150\</base\>  
\<width\>24\</width\>  
\<height\>24\</height\>  
\</window\>

var typeSelected:String = windowXML.type.style.@title;

How do I call the style or any field with a variable that isnt the node name? Is this possible?

Thanks again

Jason
