XML FileCode to remove an Order node
XmlDocument doc = new XmlDocument();
doc.Load(Properties.Settings.Default.OrderXMLFileLocation);
XmlNode node = doc.SelectSingleNode(string.Format("/CurrentOrders[Order='{0}']", orderNumber));
node.ParentNode.RemoveChild(node);
No comments:
Post a Comment