Xml.XMLDoc.TXMLDocument.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); overload; override;
constructor Create(const AFileName: DOMString); reintroduce; overload;

C++

__fastcall virtual TXMLDocument(System::Classes::TComponent* AOwner)/* overload */;
__fastcall TXMLDocument(const System::UnicodeString AFileName)/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLDocument

Description

Instantiates a TXMLDocument object.

Call Create to instantiate a TXMLDocument component at runtime. You do not need to explicitly create TXMLDocument components that are added to forms or data modules at design time: they are created automatically.

AFileName specifies the file that the new TXMLDocument instance represents.

AOwner is another component that is responsible for freeing the TXMLDocument instance. It becomes the value of the Owner property.

TXMLDocument components that are created at runtime without an owner are freed automatically when all references to their IXMLDocument interface are released. This differs from TXMLDocument components added to a form or data module at design time or those created with an owner. When added to a form or data module at design time, the object is explicitly freed by its Owner (the form or data module).

See Also