# How to read xml file?

**URL:** <https://forum.kirupa.com/t/how-to-read-xml-file/275481>\
**Category:** Uncategorized\
**Created:** [November 14, 2008, 5:24am UTC](https://forum.kirupa.com/t/how-to-read-xml-file/275481 "2008-11-14T05:24:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![9micheal9](https://avatars.discourse-cdn.com/v4/letter/9/a6a055/32.png) [@9micheal9](https://forum.kirupa.com/u/9micheal9)\
**Post date:** [November 14, 2008, 5:24am UTC](https://forum.kirupa.com/t/how-to-read-xml-file/275481/1 "2008-11-14T05:24:19Z")

</div>

dsfsdsdfdfsdfdsfthe node’s format as below:

\<root\>  
\<groups\>  
\<group name= “abc”\>  
\<category name = “iphone”\>

```
            &lt;items
                &lt;item&gt;
                &lt;title&gt;New iPod&lt;/title&gt;
                &lt;description&gt;I got a new iPod&lt;/description&gt;
                &lt;image&gt;kresge.jpg&lt;/image&gt;
                &lt;/item&gt;
            &lt;/items&gt;
        &lt;/category&gt;
        
        &lt;category name = "accessory"&gt;
            &lt;items&gt;
                &lt;item&gt;
                    &lt;title&gt;Mouse&lt;/title&gt;
                    &lt;description&gt;Just like the one&lt;/description&gt;
                    &lt;image&gt;medialab.jpg&lt;/image&gt;
                &lt;/item&gt;
            &lt;/items&gt;
        &lt;/category&gt;        
    
    &lt;/group&gt;
&lt;/groups&gt;

```

\</root\>

im targeting to display the \<title\>,\<description\>and\<image\> only,can anyone please give me some guidance or provide me the link to similar tutorial?  
thank you:proud:
