Gets the value of a child node as a Single

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

Syntax

C#
public static float GetNodeValueSingle(
	XPathNavigator navigator,
	string path
)
Visual Basic
Public Shared Function GetNodeValueSingle ( 
	navigator As XPathNavigator,
	path As String
) As Single

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

Return Value

The value of the node or 0 if the node doesn't exist or doesn't have a value

See Also