# XML parsing

**URL:** <https://forum.kirupa.com/t/xml-parsing/310936>\
**Category:** programming\
**Created:** [June 23, 2010, 12:16pm UTC](https://forum.kirupa.com/t/xml-parsing/310936 "2010-06-23T12:16:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exhaler](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@exhaler](https://forum.kirupa.com/u/exhaler)\
**Post date:** [June 23, 2010, 12:16pm UTC](https://forum.kirupa.com/t/xml-parsing/310936/1 "2010-06-23T12:16:55Z")

</div>

hi,  
i used this great tutorial [http://www.kirupa.com/web/xml\_php\_parse\_intermediate.htm](http://www.kirupa.com/forum/../web/xml_php_parse_intermediate.htm) to parse an xml file, however my xml file has some attributes in the tags:

```auto
<content Name="Press Releases">
    <article Thumb="press/vanityfair.jpg">
        <headline>Vanity Fair </headline>
        <date>March 2010</date>
        <copy_intro><![CDATA[<a href="http://www.ghadahparis.com/press/vanity.pdf" target="_blank">Download as PDF</a>]]></copy_intro>
        </article>
</content>

```

how can get the attributes of the article tag “thumb”. i’ve tried get[FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=2]getAttributeNode() but didn’t work  
[/SIZE][/FONT]

```auto
$story_array[$counter]->thumb->get[FONT=Verdana, Arial, Helvetica, sans-serif][SIZE=2]getAttributeNode('Thumb')[/SIZE][/FONT] = $data;

```

any ideas?
