RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.RegisterChildNodes Method

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

Pascal
procedure RegisterChildNodes(const TagNames: array of DOMString; const NodeClasses: array of TXMLNodeClass);
C++
__fastcall RegisterChildNodes(const array of DOMString TagNames, const array of TXMLNodeClass NodeClasses);

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). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!