2007年11月13日星期二

Transform XML and apply XSLT in C#

I searched the internet and found two articles:
first from MSDN
using System;
using System.Xml;
using System.Xml.Xsl;
namespace XSLTransformation
{
/// Summary description for Class1.
class Class1
{
static void Main(string[] args)
{
XslTransform myXslTransform;
myXslTransform = new XslTransform();
myXslTransform.Load("books.xsl");
myXslTransform.Transform("books.xml", "ISBNBookList.xml");

}
}
}


The second is from CodeProject

This one is long and you should check it yourself.

没有评论: