' Collection of code snippets by Arne Vajhøj 
' (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
Imports System
Imports System.IO
Imports System.Xml
Imports System.Xml.Xsl

Class MainClass
	Public Shared Sub Main(args As String())
		Dim doc As New XmlDocument()
		doc.Load("C:\test.xml")
		Dim xslt As New XslCompiledTransform()
		xslt.Load("C:\test.xsl")
		Dim wrt As New XmlTextWriter(New StreamWriter("C:\test4.xml"))
		wrt.Formatting = Formatting.Indented
		xslt.Transform(doc, wrt)
	End Sub
End Class
