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

C# | Visual Basic | Visual C++ |
public static void SetXmlFields( XmlDocument xdoc, XmlElement elm, string collectionName, string fieldName, int count, Array values, string defaultValue )
Public Shared Sub SetXmlFields ( _ xdoc As XmlDocument, _ elm As XmlElement, _ collectionName As String, _ fieldName As String, _ count As Integer, _ values As Array, _ defaultValue As String _ )
public: static void SetXmlFields( XmlDocument^ xdoc, XmlElement^ elm, String^ collectionName, String^ fieldName, int count, Array^ values, String^ defaultValue )

- xdoc (XmlDocument)
- Specifies the XML document object.
- elm (XmlElement)
- Specifies the XML element within the document.
- collectionName (String)
- Specifies the name of the collection to be updated.
- fieldName (String)
- Specifies the name of the field to be updated.
- count (Int32)
- Specifies the number of fields in the collection.
- values (Array)
- Specifies the field values, as an Array, to be updated.
- defaultValue (String)
- Specifies the default field value as a string. If the default value is set to null, then an empty string is used.