RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.RegisterChildNode Method

Registers a descendant of TXMLNode that can represent the children of this node.

Pascal
procedure RegisterChildNode(const TagName: DOMString; ChildNodeClass: TXMLNodeClass; NamespaceURI: DOMString = '');
C++
__fastcall RegisterChildNode(const DOMString TagName, TXMLNodeClass ChildNodeClass, DOMString NamespaceURI = '');

Applications can't call the protected RegisterChildNode method. It is called by the RegisterChildNodes method to register a TXMLNode descendant so that it can be used as a child of this node. Each TXMLNode descendant is specific to the structure of the XML document, with properties that correspond to the child nodes and attributes of a node. 

RegisterChildNode adds an entry to the ChildNodeClasses property for the specified node class and tag name. 

TagName is the tag name of the child node that the class represents. 

NodeClass is the TXMLNode descendant that implements child nodes that have the specified tag name. 

NamespaceURI identifies the namespace in which TagName is defined.

Note: RegisterChildNode raises an exception if this is a hosted node.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!