public object Consume( TextReader source )
Parameters
- source
- a
TextReader
Return Value
an object that represents the whole document, as returned by ConsumeRootElement
TextReader
public object Consume( TextReader source )
TextReader
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
.