This topic has not yet been rated - Rate this topic

XmlWriterSettings.CheckCharacters Property

Gets or sets a value indicating whether to do character checking.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)
public bool CheckCharacters { get; set; }

Property Value

Type: System.Boolean
true to do character checking; otherwise false. The default is true.

If the XmlWriter object supports character checking, it throws an exception if any characters are outside the range of legal XML characters. Section 2.2 of the W3C XML 1.0 recommendation specifies the range of legal XML characters (http://www.w3.org/TR/REC-xml#charsets).

Note Note

Character checking does not include checking for illegal characters in XML names, nor does it include checking that all XML names are valid. These checks are part of conformance checking and are always performed.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ