Aman Singh

Aman Singh

  • NA
  • 9
  • 2.5k

XML in C#

Sep 22 2014 2:10 PM
I have an XMl file like this
<REGISTRATION>
<MAC_ID V='123qwwe'/>
<LOCAL_IP V='192.70.72.20'/>
<PUBLIC_IP V='192.80.70.68'/>
<PORT V='1233'/>
</REGISTRATION>
 
and a class named parameter with MACId ,PublicIp,LOcalP and Port as property (public string MACId{get; set;})
I have to read this xml and store each value in object of parameter of that class.I have tried it but not able to get the requiered output. so help me to solve this issue. 
 

Answers (3)