Hallo,
ich möchte einem ChildNode einen neuen Wert zuweisen, es will mir aber einfach nicht gelingen. Vielleicht weiß jemand Rat ... Danke!
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
| procedure TForm1.Button1Click(Sender: TObject); var txt, txt2: string; begin xmlStatus.FileName := Pfad + '\STATUS.xml'; xmlStatus.Active := true;
txt := xmlStatus.DocumentElement.ChildValues['Side']; txt2 := xmlStatus.DocumentElement.ChildValues['Position'];
xmlStatus.DocumentElement.SetAttributeNS('Side', '', 'Long');
txt := xmlStatus.DocumentElement.ChildValues['Side'];
Label10.Caption := txt; Label11.Caption := txt2; end; |
Moderiert von
raziel: Code- durch Delphi-Tags ersetzt