System.Xml.Serialization.XmlSerializationReader.DecodeName Property

Gets or sets a value that determines whether XML strings are translated into valid .NET Framework type names.

Syntax

protected bool DecodeName { 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) 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 class 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