lets take a simple xml file ,, suppose we are getting any xml from server side (mean through url)... in the bellow given format
<root>
<item>
<name>sweet</name>
<type category="chocolate">Truffels...</type >
</item>
<item>
<name>dessert</name>
<type category="icecream">crunchy choco</type >
</item>
</root>
A simple xml file.