XdsUtilgetNullAttribute Method |
Get an XmlElement's attribute value, returning null if the attribute value is empty.
Namespace: DXMLBase.XdsAssembly: DXMLBase (in DXMLBase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static string getNullAttribute(
XmlElement source,
string attrName
)
Public Shared Function getNullAttribute (
source As XmlElement,
attrName As String
) As String
public:
static String^ getNullAttribute(
XmlElement^ source,
String^ attrName
)
static member getNullAttribute :
source : XmlElement *
attrName : string -> string
Parameters
- source
- Type: System.XmlXmlElement
The XmlElement containing the attribute. - attrName
- Type: SystemString
The name of the attribute.
Return Value
Type:
StringThe non-empty attribute value, or null.
See Also