<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

ConformanceLevel

public enum ConformanceLevel
Specifies the amount of input or output checking that XmlReader and XmlWriter objects perform.
Auto = 0

The XmlReader or XmlWriter object automatically detects whether document-level or fragment-level checking should be performed, and does the appropriate checking. If you're wrapping another XmlReader or XmlWriter object, the outer object doesn't do any additional conformance checking. Conformance checking is left up to the underlying object.See the ConformanceLevel and ConformanceLevel properties for details on how the compliance level is determined.

The XML data complies with the rules for a well-formed XML 1.0 document, as defined by the W3C.

The XML data is a well-formed XML fragment, as defined by the W3C.