XPathNavigator.ValueAsBoolean gets the current node's value as a Boolean.
Imports System Imports System.Xml Imports System.Xml.XPath Public Class MainClass Public Shared Sub Main() Dim document As XPathDocument = New XPathDocument("valueas.xml") Dim navigator As XPathNavigator = document.CreateNavigator() navigator.MoveToChild("root", "") navigator.MoveToChild("booleanElement", "") Dim booleanValue As Boolean = navigator.ValueAsBoolean Console.WriteLine(navigator.LocalName + ": " + booleanValue) End Sub End Class