随笔分类 -  XML&Json

摘要:1.创建XSLT文件,定义格式;2.在C#中使用XslCompiledTransform对象的load()方法加载XSLT文件;3.使用Transform()方法转换XML文档。实例:将books.xml按照books.xsl定义的格式转换成out.htmlTestXsl.cs:using System; using System.Xml.Xsl; namespace Magci.Test.XML.TestXsl { class Program { static void Main(string[] args) { XslCompiledTransform trans = new XslCom 阅读全文
posted @ 2011-05-12 16:58 poisson_notes 阅读(2495) 评论(0) 推荐(1)