Xml Parsing in dot net

Posted by Amrendra_Cs under C# on 9/22/2014 | Points: 10 | Views : 1122 | Status : [Member] | Replies : 2
I have an xml file like this
<REGISTRATION>
<MAC_ID V='1ASD2345'/>
<LOCAL_IP V='192.08.20.04'/>
<PUBLIC_IP V='192.168.10.04'/>
</REGISTRATION>
and a class GatewayRegistration with
Public string MacId{},
public string LOcalIp{}

I have to read this xml file and store in object of that class using XMLDOcument.

I have tried in different way but not able to get the correct solution.So help me to parse this xml.




Responses

Posted by: Bandi on: 9/23/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
refer
http://csharp.net-tutorials.com/xml/writing-xml-with-the-xmldocument-class/
http://www.codeproject.com/Articles/169598/Parse-XML-Documents-by-XMLDocument-and-XDocument

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Amrendra_Cs, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naveenhcl on: 9/23/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,

Go through this link may be this will helpful to you.

http://www.dotnetspider.com/resources/45644-Transfer-XML-file-to-another-XML-using-XSLT-in-ASPnet.aspx

Amrendra_Cs, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response