1.
using System.Xml;XmlDocument xmldoc = new XmlDocument();
XmlElement xe = xmldoc.CreateElement("root");
xmldoc.AppendChild(xe);
string s = xmldoc.InnerXml;or
string s = "....;
XmlDocument xmldoc = new XmlDocument();
xmldoc.LoadXml(s);2.
objDataSet.GetXml() Returns the XML representation of the data stored in the DataSet.objDataSet.GetXmlSchema() Returns the XSD schema for the XML representation of the data stored in the DataSet.

解决方案 »

  1.   

    saucer(思归, MS .NET MVP) 解释的很详细
      

  2.   

    小弟愚昧。
    如果我一开始要创建的xml需要存放如下的一些内容应该如何做?
    物品名   数量   对应文件
    xx         11     aa.aspx
    bb         22     bb.aspx
    吧这些转换保存到数据库后需要的时候在读取出来
    然后转换为xml对象。
    如何对他进行操作?