Xml.XMLDoc.TXMLNode.RegisterChildNode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterChildNode(const TagName: DOMString;  ChildNodeClass: TXMLNodeClass; NamespaceURI: DOMString = '');

C++

void __fastcall RegisterChildNode(const System::UnicodeString TagName, TXMLNodeClass ChildNodeClass, System::UnicodeString NamespaceURI = System::UnicodeString());

Properties

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

Description

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

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.

See Also