[This is preliminary documentation and is subject to change.]
Static utility function "GetXmlAttribute", provided for general use to obtain
an attribute value from an XML element.

C# | Visual Basic | Visual C++ |
public static Object GetXmlAttribute<T>( XmlElement elm, string fieldName, bool isRequired )
Public Shared Function GetXmlAttribute(Of T) ( _ elm As XmlElement, _ fieldName As String, _ isRequired As Boolean _ ) As Object
public: generic<typename T> static Object^ GetXmlAttribute( XmlElement^ elm, String^ fieldName, bool isRequired )

- T
- Specifies the System.Type of the field value.

- elm (XmlElement)
- Specifies the XML element.
- fieldName (String)
- Specifies the name of the field attribute to be updated.
- isRequired (Boolean)
- Specifies True if the field is required. An exception will be thrown if a required field is missing in the XML document.

Returns the field value of type T.