Value of XMLField.XMLName must be used as key value for collection. (Error 2100)

The XMLName property for an XMLField must be used as the key, when adding the XMLField to a Fields collection.

  • Make sure that any XMLField objects, that are going to be added to a collection have the XMLName property set to a valid value, and that this value is used as the key.