System.Xml.XmlReaderSettings.ConformanceLevel Property

Gets or sets the level of conformance which the System.Xml.XmlReader will comply.

Syntax

public ConformanceLevel ConformanceLevel { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Note that System.Xml.XmlReader objects created by the erload:System.Xml.XmlReader.Create method are more compliant by default than the System.Xml.XmlTextReader class. The following are conformance improvements that are not enabled on System.Xml.XmlTextReader, but are available by default on readers created by the erload:System.Xml.XmlReader.Create method:

  • New lines and attribute value are normalized according to the XML spec.

  • All entities are automatically expanded.

  • Default attributes declared in the document type definition are always added even when the reader does not validate.

  • Declaration of XML prefix mapped to the correct XML namespace URI is allowed.

  • The notation names in a single NotationType attribute declaration, as well as the NmTokens in a single Enumeration attribute declaration, must all be distinct.

For more information, see Data Conformance Checking with XmlReader.

Requirements

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