Let me give you the code snippet for transforming a simple
VB.NET code. But I am not sure whether this is what you are looking for. Do write back if you are looking for something else.
Namespace declarations:
Imports System.Xml
Imports System.Xml.Xsl
Code to transform:
Dim xslt As New XslTransform()
Try
xslt.Load("transform.xslt")
xslt.Transform("source.xml","result.xml")
Catch ex As Xsl.XsltException
Console.WriteLine("transform failed"
Catch ex As Exception
Console.WriteLine(ex.Message & " " & ex.StackTrace
End Try
Note that i have used the basic transformation. Actually there are 18 odd overloaded transform methods.
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com