[This is preliminary documentation and is subject to change.]
Static utility function "GetXmlField", provided for general use to obtain a field value from
an XML document.

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

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

- root (XmlElement)
- Specifies the XML root element.
- collectionName (String)
- Specifies the name of the collection to be updated.
- fieldName (String)
- Specifies the name of the field 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 values as an System.Object. User must cast the return value to T[].