if the format is not what you want, you can either output to the right format with XmlTextWriter + XmlDocument/XPathNavigator, or you can write an xslt stylesheet and System.Xml.Xsl.XslTransform class to transform it into the right format
to fourfire29(沙子) 你的第一个当中参数 IgnoreSchema什么意思? to saucer(思归, MS .NET MVP) i've known that i can get what i want by using XmlTextWriter +XmlDocument,can you give me a sample that can convert data in DataSet into Xml document?
using System.Xml;XmlDataDocument xdd = new XmlDataDocument(DataSet1);//xdd points to what is in DataSet1 XmlDocument xmldoc = (XmlDocument)xdd.CloneNode(true);//create a copy
to saucer 我的意思是如何得到xml文件,现在我做到写出了xml文件 可是利用dataset将数据写入怎么做?
你的第一个当中参数 IgnoreSchema什么意思?
to saucer(思归, MS .NET MVP)
i've known that i can get what i want by using XmlTextWriter +XmlDocument,can you give me a sample that can convert data in DataSet into Xml document?
XmlDocument xmldoc = (XmlDocument)xdd.CloneNode(true);//create a copy
我的意思是如何得到xml文件,现在我做到写出了xml文件
可是利用dataset将数据写入怎么做?