Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionParserHelper.GetAttributeValue(XmlElement, String, String) Method

Returns the value of the element's attribute or defaultValue, if the attribute is not specified.

[Visual Basic]
Public Overloads Sub GetAttributeValue( _
   ByVal element As XmlElement, _
   ByVal attributeName As String, _
   ByVal defaultValue As String _
public string GetAttributeValue(
   XmlElement element,
   string attributeName,
   string defaultValue


This is a helper for bypassing the behavior of GetAttribute to return Empty if the attribute does not exist.

See Also

ObjectDefinitionParserHelper Class | Spring.Objects.Factory.Xml Namespace | ObjectDefinitionParserHelper.GetAttributeValue Overload List