Xml.XMLDoc.TXMLNode.InternalAddChild

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function InternalAddChild(NodeClass: TXMLNodeClass;  const NodeName, NamespaceURI: DOMString; Index: Integer): IXMLNode;

C++

Xml::Xmlintf::_di_IXMLNode __fastcall InternalAddChild(TXMLNodeClass NodeClass, const System::UnicodeString NodeName, const System::UnicodeString NamespaceURI, int Index);

Properties

Type Visibility Source Unit Parent
function protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

Provides the underlying implementation for the AddChild method.

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.

See Also