Ankit Shivnakr

Ankit Shivnakr

  • NA
  • 200
  • 60.1k

How to Write in xml

Feb 3 2012 5:38 AM
Hi

I need C# code to write page data into XML file in following formet



<GroupDetails>
<Gruopid = 1>
 <GroupName>
   XYZ Education 1
 </GroupName>
 <GroupAddress>
   Delhi
 </GroupAddress>
</Gruopid>
<Gruopid = 2>
 <GroupName>
   XYZ Education 2
 </GroupName>
 <GroupAddress>
   Mumbai
 </GroupAddress>
</Gruopid>
<Gruopid = 3>
 <GroupName>
   XYZ Education 3
 </GroupName>
 <GroupAddress>
   Noida
 </GroupAddress>
</Gruopid>

<GroupDetails>

Answers (2)