NativeXml Help
TsdXmlObjectReader.CreateComponent
function CreateComponent(ANode: TXmlNode; AOwner: TComponent; AParent: TComponent; AName: string): TComponent;
Description
Call CreateComponent to first create AComponent and then read its published properties from the TXmlNode ANode. Specify AParent in order to resolve references to parent methods and events correctly. In order to successfully create the component from scratch, the component's class must be registered beforehand with a call to RegisterClass. Specify Owner to add the component as a child to Owner's component list. This is usually a form. Specify Name as the new component name for the created component.