Click or drag to resize
XdsUtilsetNonEmptyAttribute Method
Set an XML attribute on an element only if the attribute value is non-null and non-empty. Removes any existing attribute.

Namespace: DXMLBase.Xds
Assembly: DXMLBase (in DXMLBase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool setNonEmptyAttribute(
	XmlElement target,
	string attrName,
	string attrValue
)

Parameters

target
Type: System.XmlXmlElement
Element to receive attribute
attrName
Type: SystemString
Name of the XML attribute
attrValue
Type: SystemString
Value of the XML attribute

Return Value

Type: Boolean
true if the attribute was set, false otherwise
See Also