Autor Beitrag
swbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: So 23.07.06 08:28 
Hallo,

ich möchte einem ChildNode einen neuen Wert zuweisen, es will mir aber einfach nicht gelingen. Vielleicht weiß jemand Rat ... Danke!

ausblenden 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 user profile iconraziel: Code- durch Delphi-Tags ersetzt