XmlDocument.CreateNavigator
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Imports System.IO
Public Class MainClass
Shared Sub Main()
Dim document As XmlDocument ' Xml document root
Dim navigator As XPathNavigator ' navigate document
Dim transformer As XslTransform ' transform document
Dim output As StringWriter
document = New XmlDocument()
document.Load("games.xml")
navigator = document.CreateNavigator
transformer = New XslTransform()
transformer.Load("games.xsl")
output = New StringWriter()
transformer.Transform(navigator, Nothing, output)
Console.WriteLine(output.ToString)
output.Close()
End Sub
End Class
Related examples in the same category