
Zitat von
sirius:
Aber innerhalb einer For-Schleife werden auch die Temps gelöscht
na das ist ja wohl klar, da dort natürlich immer wieder die selbe Temp-Variable verwendet wird
Delphi-Quellcode:
begin
xml := coDOMDocument60.Create;
for i:=1
to 3
do
begin
XML.RootDocument.ChildNodes.Nodes['
xyz'].Attributes
end;
xml :=
nil;
end;
begin
xml := coDOMDocument60.Create;
for i:=1
to 3
do
begin
temp1 :=
XML.RootDocument;
temp2 := temp1.ChildNodes;
temp3 := temp2.Nodes['
xyz'];
temp3.Attributes
end;
xml :=
nil;
// aber das letzte Interface bleibt dennoch bis zum Schluß in diese Variable drinnen.
end;
Ein Therapeut entspricht 1024 Gigapeut.