System.Xml.Serialization.XmlSerializationReader.ReadXmlDocument Method

Instructs the System.Xml.XmlReader to read an XML document root element at its current position.

Syntax

protected System.Xml.XmlDocument ReadXmlDocument (bool wrapped)

Parameters

wrapped
true if the method should read content only after reading the element's start element; otherwise, false.

Returns

An System.Xml.XmlDocument that contains the root element that has been read.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0