System.Xml.ConformanceLevel.Document Field

The XML data is in conformance to the rules for a well-formed XML 1.0 document.

Syntax

ConformanceLevel Document

Remarks

This level of checking ensures that the stream being read or written can be consumed by any processor as an XML 1.0 document (http://www.w3.org/TR/REC-xml#NT-document).

In addition to the ConformanceLevel.Fragment checks, the ConformanceLevel.Document level of checks also ensures the following:

  • The top-level item must not have any nodes other than XML Declaration, DTD, element, comment, white space, or processing instruction.

  • The XML data must have one, and only one, top-level element node.

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