XmlDocument.CreateNavigator : XmlDocument « System.Xml « VB.Net by API






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

1.XmlDocument.AppendChild
2.XmlDocument.CreateAttribute
3.XmlDocument.CreateComment
4.XmlDocument.CreateElement
5.XmlDocument.CreateXmlDeclaration
6.XmlDocument.GetElementsByTagName
7.XmlDocument.LoadXml
8.XmlDocument.SelectNodes