1.例子如下:
XmlDocument doc = new XmlDocument();
doc.Load("booksort.xml");XmlNodeList nodeList;
XmlNode root = doc.DocumentElement;
nodeList=root.SelectNodes("descendant::book[author/last-name='Austen']");
 
//Change the price on the books.
foreach (XmlNode book in nodeList)
{
    book.LastChild.InnerText="15.95";
}
Console.WriteLine("Display the modified XML document....");
doc.Save(Console.Out);2.XSD是XML 模式定义,跟数据库里的表的结构相似,VS.Net可以根据XSD文件自动生成可以定义有结构的DataSet的类,如果没有XSD就不能生成你想要的有结构DataSet!