Indicates that this reader is used to read a fragment of a document.
[Visual Basic] Public Property DocumentFragment As Boolean [C#] public bool DocumentFragment {get; set;} [C++] public: __property bool get_DocumentFragment(); public: __property void set_DocumentFragment(bool); [JScript] public function get DocumentFragment() : Boolean; public function set DocumentFragment(Boolean);
By default, an XML reader validates that CDATA and non-whitespace text nodes do not occur at the document level, and that a document contains only one root element. The DocumentFragment option is used to disable this validation. This is useful when reading text that constitutes a partial document.
XmlTextReader Class | XmlTextReader Members | System.Xml Namespace