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