Items (xmldoc)
property Items[index:Integer]:TxmlItem;
Lecture seule
Cette propriété accède aux éléments racines.
Exemple:
procedure foo(doc:TxmlDocument);
begin
if doc.Count<>0 then
doSomething(doc.Items[0]);
end;
Utilisation en itérateur
procedure foo(doc:TxmlDocument);
var itm:TxmlItem;
begin
foreach itm in doc do
doSomething(itm);
end;
Voir aussi: