1 ds.WroteXml(fs,System.Data.XmlWriteMode.IgnoreSchema)
2 是默认的,
3继承dataset设置,可参考.net中网上书店的例子
4 xmpspy

解决方案 »

  1.   

    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
      

  2.   

    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?
      

  3.   

    using System.Xml;XmlDataDocument xdd = new XmlDataDocument(DataSet1);//xdd points to what is in DataSet1
    XmlDocument xmldoc = (XmlDocument)xdd.CloneNode(true);//create a copy
      

  4.   

    to  saucer
    我的意思是如何得到xml文件,现在我做到写出了xml文件
    可是利用dataset将数据写入怎么做?