Xml.xmldom.IDOMNode.appendChild

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

function appendChild(const newChild: IDOMNode): IDOMNode; safecall;

C++

virtual HRESULT __safecall appendChild(const _di_IDOMNode newChild, _di_IDOMNode &__appendChild_result) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Xml.Xmldom.pas
Xml.xmldom.hpp
Xml.xmldom IDOMNode

Description

Adds a new child node to this node.

Use appendChild to add a child node to the end of this node's list of children. If the new node is already in the document's node hierarchy, it is first removed from its parent node. If this node is read-only, newChild was created using a different document, or if newChild is of a nodeType that is not permitted as a child of this node, appendChild raises an exception.

newChild is the child node to add. It can be a node that currently has another parent node, or a new node created using the methods of the document interface. If it is of nodeType DOCUMENT_FRAGMENT_NODE, the entire contents of the document fragment are moved into this node's childNodes property list.

appendChild returns the interface for the newly added child node.

See Also