GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlReader Class / ConsumeRootBody Method
the data structure representing the whole document body, the result of a call to ConsumeRootAttributes
In This Topic
    ConsumeRootBody Method
    In This Topic
    Call ConsumeObject for each element found in the root element.
    Syntax
    protected virtual void ConsumeRootBody( 
       object obj
    )

    Parameters

    obj
    the data structure representing the whole document body, the result of a call to ConsumeRootAttributes
    Remarks
    The default implementation assumes ConsumeRootElement returns either an IList or an IGoCollection (such as a GoDocument or a GoCollection) representing the collection of objects to be read from the XML. If the object returned by ConsumeObject is a GoObject and root object is a IGoCollection, the GoObject is Add'ed to the IGoCollection. Otherwise, if the root object is an IList, the new object is Added to the IList. If you have overridden ConsumeRootElement or ConsumeRootAttributes to return a different kind of object, you may need to override this method too.
    See Also