NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextReader.DocumentFragment

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);

Remarks

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.

See Also

XmlTextReader Class | XmlTextReader Members | System.Xml Namespace