System.Xml.Serialization.XmlSerializationWriter.FromXmlNCName Method

Encodes a valid XML local name by replacing characters that are not valid with escape sequences.

Syntax

protected static string FromXmlNCName (string ncName)

Parameters

ncName
A string to be used as a local (unqualified) XML name.

Returns

An encoded string.

Remarks

The protected members of the System.Xml.Serialization.XmlSerializationWriter class are intended for use by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

The XmlSerializationWriter.FromXmlNCName(string) method is static.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0