Mega Code Archive

 
Categories / VB.Net / XML
 

Moves the XPathNavigator to the following element

Imports System Imports System.Xml Imports System.Xml.XPath Public Class MainClass     Public Shared Sub Main()         Dim document As XPathDocument = New XPathDocument("domainBooks.xml")         Dim navigator As XPathNavigator = document.CreateNavigator()                  navigator.MoveToFollowing(XPathNodeType.Element)                  Console.WriteLine("Position: {0}", navigator.Name)         Console.WriteLine(navigator.OuterXml)     End Sub End Class