How To Write XmlDocument Based on XmlnodeList

Posted by Jayakumars under ASP.NET on 7/9/2013 | Points: 10 | Views : 768 | Status : [Member] [MVP] | Replies : 1
Hi

How To Write XmlDocuments based on XmlNode. Here i need how to create xmlnode data post and created my xml file how will do this.

My Code This

XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Server.MapPath("Test.xml"));
XmlNodeList xmlnod = xmldoc.SelectNodes("//CustDetails//Cust[custid='" + vid.ToString() + "']");

for (int i = 0;i<=xmlnod.Count-1; i++)
{
xmlnod[i].ParentNode.AppendChild(xmlnod[i]);
}

xmldoc.Save(Server.MapPath("Cust1947.xml"));

Mark as Answer if its helpful to you


Responses

Posted by: Ssj_Kumar on: 7/9/2013 [Member] Starter | Points: 25

Up
0
Down
Have a look on the below link, It may help you sorting your problem
http://www.agiledeveloper.com/articles/XMLSerialization.pdf

Regards,
Jayakumar Selvakani

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

Login to post response