# Reading Complex XML files (XML files with nested elements)

**URL:** https://forum.kirupa.com/t/reading-complex-xml-files-xml-files-with-nested-elements/259527
**Category:** web dev
**Created:** [May 6, 2008, 12:39pm UTC](https://forum.kirupa.com/t/reading-complex-xml-files-xml-files-with-nested-elements/259527 "2008-05-06T12:39:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![santy\_555](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@santy\_555](https://forum.kirupa.com/u/santy_555)
#### Post date: [May 6, 2008, 12:39pm UTC](https://forum.kirupa.com/t/reading-complex-xml-files-xml-files-with-nested-elements/259527/1 "2008-05-06T12:39:24Z")

</div>

Hi friends,

Can any one help me out how to read the XML file with nested elements .  
i have seen the article by kirupa in these links  
[http://www.kirupa.com/net/readingXML\_pg1.htm](http://www.kirupa.com/net/readingXML_pg1.htm)  
and  
[http://www.kirupa.com/net/reading\_xml\_directly\_pg1.htm](http://www.kirupa.com/forum/../net/reading_xml_directly_pg1.htm)

but i am not getting idea on reading complex files  
for example

\<ISO15745Profile\>  
\<header\>\</header\>  
\<profilebody\>  
\<Deviceidentity\>  
\<name\>santy\</name\>  
\<text lang=“en-us”\>santy\</text\>  
\<text lang=“french”\>san\</text\>  
\<Deviceidentity\>  
\<communication\>  
\<id\>1\</id\>  
\</communication\>  
\</profilebody\>  
\</ISO15745Profile\>

or

you can see the file i have attached .
