Parameters
- source
- a
Stream
Return Value
an object that represents the whole document, as returned by ConsumeRootElement
Stream
Stream
This does some initialization, creates a XmlReader
, calls LoadDOM to perhaps create a XmlDocument
. Then it calls, in order, ConsumeInstructions, ConsumeRootElement, ConsumeRootAttributes, ConsumeRootBody, ProcessDelayedObjects. Note that if UseDOM is true, the whole DOM is loaded by LoadDOM and the XmlReader will be null.
This calls XmlReader.Create
with the value of this.XmlReaderSettings
.