Mega Code Archive

 
Categories / VB.Net / XML
 

Moves the XPathNavigator to the following element of the XPathNodeType specified

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("price", "http://www.domain.com/books")         Dim boundary As XPathNavigator = navigator.Clone()                  navigator.MoveToRoot()                  While navigator.MoveToFollowing(XPathNodeType.Text, boundary)             Console.WriteLine(navigator.OuterXml)         End While     End Sub End Class