GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlReader Class / Consume Method / Consume(Stream) Method
a Stream
In This Topic
    Consume(Stream) Method
    In This Topic
    Start an XmlReader and consume XML.
    Syntax
    public object Consume( 
       Stream source
    )

    Parameters

    source
    a Stream

    Return Value

    an object that represents the whole document, as returned by ConsumeRootElement
    Remarks

    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.

    See Also