Xml.XMLDoc.TXMLNode.RegisterChildNodes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterChildNodes(const TagNames: array of DOMString;
const NodeClasses: array of TXMLNodeClass);

C++

void __fastcall RegisterChildNodes(const System::UnicodeString *TagNames, const int TagNames_High, TXMLNodeClass const *NodeClasses, const int NodeClasses_High);

Properties

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

Description

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

Applications can't call the protected RegisterChildNodes method. It is used in code that the XML Data Binding wizard generates to register the special TXMLNode descendants the are created for nodes in the XML document. Each of these descendant classes is specific to the structure of the XML document, with properties that correspond to the child nodes and attributes of the node.

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

TagNames is an array containing the names of the child nodes that the classes represent.

TagNames_Size is the index of the last name in TagNames (one less than the number of elements).

NodeClasses is an array containing the TXMLNode descendants that implement child nodes that have the tag names in the corresponding entries in TagNames.

NodeClasses_Size is the index of the last class in NodeClasses (one less than the number of elements).

See Also