RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.InternalAddChild Method

Provides the underlying implementation for the AddChild method.

Pascal
function InternalAddChild(NodeClass: TXMLNodeClass; const NodeName: DOMString; const NamespaceURI: DOMString; Index: Integer): IXMLNode;
C++
__fastcall IXMLNode InternalAddChild(TXMLNodeClass NodeClass, const DOMString NodeName, const DOMString NamespaceURI, int Index);

Applications can't call the protected InternalAddChild method. It is used internally to perform all the tasks common to the various overloads of the AddChild method. InternalAddChild creates a new element node as the child of this node and returns its interface. 

NodeClass specifies the implementation class to use for the new child node. It must be TXMLNode or one of its descendants. 

NodeName specifies the tag name of the newly created node.  

NamespaceURI identifies the namespace that includes the new node's definition.  

Index indicates the position of the child node in this node's list of children, where 0 is the first position, 1 is the second position, and so on. If Index is –1, the new node is added to the end. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!