If (!Page.IsPostBack)
{
try
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml("" +
"NLD " +
"" +
"" +
"PL " +
"01 " +
"20,00 " +
"100,00 " +
"130,00 " +
"10,00 " +
"" +
""
);
XmlNode root = xmlDoc.SelectSingleNode("//POLICYRISKS");
XmlNode root1 = xmlDoc.DocumentElement.ChildNodes.Item(1);
XmlNode clonenode = root1.CloneNode(true);
xmlDoc.DocumentElement.InsertAfter(clonenode,root1);
xmlDoc.Save(@"F:\Projects\clonebooks.xml");
}
catch(Exception Ex)
{
Response.Write(Ex.Message);
}
}
No comments:
Post a Comment