AddAttribute (xmlitem)
<source lang='delphi'>function AddAttribute(const iName:string; const iValue:string):TxmlAttribute;</source>
Cette fonction crée ou modifie un attribut du nom indiqué.
Result | Attribut xml |
iName | Nom de l'attribut. |
iValue | Valeur de l'attribut. |
Exemple: <source lang='delphi'> procedure foo(elt:TxmlItem); begin
// add or update attribute "id" elt.AddAttribute('id',inttostr(elt.ItemParent.IndexOfItem(elt));
end; </source>
Voir aussi:
{{#if:Eléments XML (tech)|
{{#if:Eléments XML (tech)|— Eléments XML (tech) |}} — Développement DSM —
|
{{#if:|— [[{{{1}}}]] |}} — Développement DSM —
}}