System.Xml.Serialization.XmlSerializationWriter.EscapeName Property

Gets or sets a value that indicates whether the System.Xml.XmlConvert.EncodeName(string) method is used to write valid XML.

Syntax

protected bool EscapeName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The System.Xml.XmlConvert.EncodeName(string) method writes valid XML from invalid sources. For example, the System.Data.DataColumn.ColumnName property of the System.Data.DataColumn class can contain spaces, which are invalid as XML. The System.Xml.XmlConvert.DecodeName(string) method reads the encoded XML and restores it to the original value. However, the erload:System.Xml.Schema.XmlSchema.Read method of the System.Xml.Schema.XmlSchema cannot read such encoded XML. In that case, set the XmlSerializationWriter.EscapeName property to false to disable the encoding of the XML.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0