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

    Parameters

    source
    an XmlReader

    Return Value

    an object that represents the whole document, as returned by ConsumeRootElement
    Remarks
    This does some initialization, 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. You probably do not need to override this method.
    See Also