Ankit  Shukla

Ankit Shukla

  • NA
  • 681
  • 116.5k

fetch data from xml

Jan 28 2016 5:34 AM
Hello;
 
 I have a xml file like this:
 
 <Student> 
 <stud>
 <id> 1 </id>
<name> abc </name> 
</stud> 
<stud>
<id> 2 </id>
<name> abcd </name>
</stud>

<stud>
<id> 3</id>
<name> abcde </name>
</stud>
</Student>  
 
I need to store all id's in a string or array or anything like this: (1,2,3) 
 
Please help as soon as possible.. Thanks in advance.. 
 
 
 
 

Answers (11)