Gets the value of a child node as a String

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string GetNodeValue(
	XPathNavigator navigator,
	string path,
	string defaultValue
)
Visual Basic
Public Shared Function GetNodeValue ( 
	navigator As XPathNavigator,
	path As String,
	defaultValue As String
) As String

Parameters

navigator
Type: System.Xml.XPath..::..XPathNavigator
A navigator pointing to the parent node
path
Type: System..::..String
An XPath expression to find the child node
defaultValue
Type: System..::..String
Default value to return if the node doesn't exist or doesn't have a value

Return Value

The value of the node or defaultValue

See Also