GoDiagram Web Reference
ConsumeChild Method (GoXmlTransformer)

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
When BodyConsumesChildElements is true, ConsumeBody will call ConsumeObject on each child XML element and pass the resulting object to this method.
Syntax
'Declaration
 
Public Overridable Sub ConsumeChild( _
   ByVal parent As Object, _
   ByVal child As Object _
) 
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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoXmlTransformer Class
GoXmlTransformer Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback