xml牵涉到的东西太多,建议先读一下“无废话xml”
至于数据操作,从sqlserver2000开始可以使用
select columname from tablename for xml的形式来取数据。
最后在dataset中你还可以用System.Xml命名空间的类Xpath,Xnaviagtor,Xslt等来操作数据,还有数据结构DTD的应用。

解决方案 »

  1.   

    如果要打印:
    http://www.microsoft.com/china/community/article.asp?oBODY=TechZone/TechArticle/TechDoc/xmlwebprint&oXSLT=TechZone/TechArticle/TechContent
    http://www.microsoft.com/china/community/article.asp?oBODY=TechZone/TechArticle/TechDoc/xmlwebreport&oXSLT=TechZone/TechArticle/TechContent我按照这样做过,但有问题。
    还有dataset格式就是xml。
         DataSet we= new DataSet();
         we.GetXml();
         we.ReadXml();
         we.GetXmlSchema();
         we.WriteXml();
      

  2.   

    强烈关注!!!!!我将数据表中的数据写到服务器上的*.xml文件中,如何将它以格式化的方式
    显示在浏览器中?
      

  3.   

    use XML+XSLT, see
    C#: A SQL Server XML and ASP.NET Runtime Application
    http://www.microsoft.com/indonesia/msdn/csharp_sql_asp_xml.asp
      

  4.   

    Transforming XML with XSLT and ASP.NET
    http://www.informit.com/isapi/product_id~%7BDB33F2C9-BAEA-4C8E-9860-834E332B010D%7D/content/index.asp