# Parsing xml based on attributes

**URL:** <https://forum.kirupa.com/t/parsing-xml-based-on-attributes/242484>\
**Category:** flash\
**Created:** [October 26, 2007, 1:30pm UTC](https://forum.kirupa.com/t/parsing-xml-based-on-attributes/242484 "2007-10-26T13:30:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qujo](https://avatars.discourse-cdn.com/v4/letter/q/eada6e/32.png) [@Qujo](https://forum.kirupa.com/u/Qujo)\
**Post date:** [October 26, 2007, 1:30pm UTC](https://forum.kirupa.com/t/parsing-xml-based-on-attributes/242484/1 "2007-10-26T13:30:55Z")

</div>

Hello world!

My question is - is it possible to parse node values based on their attribute value. To clearify:

-----XML----

\<content\>  
\<page name=“10”\>  
\<heading\>Heading 10\</heading\>  
\<txt\>text 10\</txt\>  
\</page\>  
\<page name=“11”\>  
\<heading\>Heading 11\</heading\>  
\<txt\>text 11\</txt\>  
\</page\>  
\</content\>

-----XML----

Can i use the ‘name’ value to get the node values of that node.

In idiotScript: getNodeValue.name(11); :ko:
