The parent node will AddRef the new child. If you are finished with your reference to the child, you can Release it. The parent node will Release the child when the parent is destroyed.
- po:A pointer to the ITrigmlElement object into whose child list to insert the child element.
- nodeToInsert:A pointer to another ITrigmlElement to will be inserted as a child of the first one.
- beforeThisNode:Optionally, a pointer to a third ITrigmlElement, which should be an existing child node of po. nodeToInsert will be inserted into po's child list before beforeThisNode. Pass NULL to just append nodeToInsert at the end of po's child list.
int ITRIGMLELEMENT_InsertChild(ITrigmlElement* po, ITrigmlElement* nodeToInsert, ITrigmlElement* beforeThisNode);
SUCCESS if the node was successfully inserted.