Serializes the dictionary to XML. Keys are serialized to element names and values as element values. An xml type attribute is embedded for each serialized element - a .NET type element is embedded for each complex type and prefixed with three underscores.