Click or drag to resize

XmlUtilsGetOptionalAttribute Method (XmlElement, String, String)

Gets the named attribute value. Returns a default value if the attribute is not available.

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static string GetOptionalAttribute(
	XmlElement xeElement,
	string name,
	string defaultValue
)

Parameters

xeElement
Type: System.XmlXmlElement
The parent XML element.
name
Type: SystemString
The attribute's name.
defaultValue
Type: SystemString
The default value.

Return Value

Type: String
The attribute's value or the default value.
See Also