GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlTransformer Class / ConsumeChild Method
the result of an earlier call to Allocate that was passed to a call to ConsumeBody
the result of the call to ConsumeObject; may be null
In This Topic
    ConsumeChild Method (GoXmlTransformer)
    In This Topic
    When BodyConsumesChildElements is true, ConsumeBody will call ConsumeObject on each child XML element and pass the resulting object to this method.
    Syntax
    public virtual void ConsumeChild( 
       object parent,
       object child
    )

    Parameters

    parent
    the result of an earlier call to Allocate that was passed to a call to ConsumeBody
    child
    the result of the call to ConsumeObject; may be null
    Remarks

    Typically you would override this method to add the child to the parent in the appropriate manner, or perhaps to set a property of the parent to refer to the child object. Note that this method will not get called by ConsumeBody unless BodyConsumesChildElements is true or unless some transformer's implementation of ConsumeBody does so.

    This is called by the standard implementation of ConsumeBody. By default this calls ConsumeChild on the InheritsFromTransformer, to allow another specific transformer to implement this behavior, or else calls GoXmlWriter.GoXmlReader.InvokeConsumeChild, to allow this TransformerType's base Type to provide a default behavior.

    See Also