# Parsing XML File in flash

**URL:** <https://forum.kirupa.com/t/parsing-xml-file-in-flash/193116>\
**Category:** flash\
**Created:** [July 4, 2006, 2:09pm UTC](https://forum.kirupa.com/t/parsing-xml-file-in-flash/193116 "2006-07-04T14:09:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firefly](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@firefly](https://forum.kirupa.com/u/firefly)\
**Post date:** [July 4, 2006, 2:09pm UTC](https://forum.kirupa.com/t/parsing-xml-file-in-flash/193116/1 "2006-07-04T14:09:47Z")

</div>

\<categories\>  
\<category type=“food”\>  
\<word\>Tea\</word1\>  
\</category\>  
\<category type=“furniture”\>  
\<word\>Chair\</word1\>  
\</category\>  
\</categories\>

I’m wondering how can I read & display the attribute value of category?  
Like I want to read food & furniture in a loop

xmlfile.firstChild.childNodes\*.childNodes[j].firstChild.nodeValue  
thats for reading node values but what for attributes?
