using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
public class MainClass
{
public static void Main()
{
XmlDocument document = new XmlDocument();
document.Load("Books.xml");
XmlElement root = document.DocumentElement;
if (root.HasChildNodes)
{
XmlNode book = root.LastChild;
root.RemoveChild(book);
document.Save("Books.xml");
}
}
}
|