Specifies the amount of input or output checking that the created System.Xml.XmlReader and System.Xml.XmlWriter objects perform.
When you create a reader or writer instance, you can use the System.Xml.XmlReaderSettings or System.Xml.XmlWriterSettings class to specify the features that you want the new instance to support. One of the features that you can configure is the level of conformance you wish to enforce on the XML data.
Creating a compliant reader or writer guarantees that the XML data being processed complies with the specified conformance level. If the stream being read or written does not comply with the conformance level, an exception is thrown.
For more information, see Data Conformance Checking with XmlReader and Data Conformance and the XmlWriter.
Member Name | Description |
---|---|
Auto |
The System.Xml.XmlReader or System.Xml.XmlWriter object automatically detects whether document or fragment checking should be performed, and does the appropriate checking. In the case where you are wrapping another System.Xml.XmlReader or System.Xml.XmlWriter object, the outer object does not do any additional conformance checking. Conformance checking is left up to the underlying object. |
Document |
The XML data is in conformance to the rules for a well-formed XML 1.0 document. |
Fragment |
The XML data is a well-formed XML fragment. |