unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, XMLDoc, XMLIntf;
type
TForm1 =
class(TForm)
cmd1: TButton;
procedure FormCreate(Sender: TObject);
procedure cmd1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
var
myFirstXML : IXMLDocument;
procedure TForm1.FormCreate(Sender: TObject);
begin
myFirstXML := newXMLDocument;
end;
procedure TForm1.cmd1Click(Sender: TObject);
begin
myFirstXML.LoadFromFile('
test.xml');
end;
end.