XML VB.Net

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("book", "http://www.domain.com/books")
        Dim boundary As XPathNavigator = navigator.Clone()
        boundary.MoveToFollowing("first-name", "http://www.domain.com/books")
        
        navigator.MoveToFollowing("price", "http://www.domain.com/books", boundary)
        
        Console.WriteLine("Position (after boundary): {0}", navigator.Name)
        Console.WriteLine(navigator.OuterXml)
        
        navigator.MoveToFollowing("title", "http://www.domain.com/books", boundary)
        
        Console.WriteLine("Position (before boundary): {0}", navigator.Name)
        Console.WriteLine(navigator.OuterXml)
    End Sub
End Class