Gets or sets an object that instructs the XmlSerializer to serialize a public field or public read/write property as XML text.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
By default, a public field or public read/write property is serialized as an XML element by the XmlSerializer. However, it can force the field or property to be serialized as XML text by applying an XmlTextAttribute to the field or property.
The XmlTextAttribute cannot be applied to a field or property that returns an array.
To override the default serialization of a field or property (that does not return an array), create an XmlTextAttribute and assign it to the property of an XmlAttributes object. Add the XmlAttributes object to an XmlAttributeOverrides object and specify the type of the object that contains the overridden field or property and the name of the overridden field or property.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.