XmlUtilsGetOptionalAttribute Method (XmlElement, String, String) |
Gets the named attribute value. Returns a default value if the attribute
is not available.
Namespace: PDTec.IceNet.Sdk.UtilsAssembly: PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic 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