Professional Documents
Culture Documents
Summary:
Xml is a meta-markup language that provides a format for describing data. Xslt is one
way to consume and transform this data into a variety different formats, including Xml,
html and wml. In this article we shall learn how to transform a simple Xml document
using Xslt.
The .NET framework provides rich support for the manipulation of Xml documents.
The main namespaces that provide us with the needed classes are:
System.Xml
System.Xml.XPath
System.Xml.Xsl
Check the code below for a C# command line application that transforms Xml with Xsl.
if (args.Length == 2){
Transform(args[0], args[1]) ;
}else{
PrintUsage() ;
try{
myWriter.Close() ;
}catch(Exception e){