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 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:
StringThe attribute's value or the default value.
See Also