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

Win XP
Delphi 7
BeitragVerfasst: Di 31.07.07 13:32 
Hallo zusammen

Ich habe eine XML Datei mit mehreren Knoten, die die Bezeichnung <AUFGABE> haben, und sich jeweils durch ein Attribut ID unterscheiden. Ein weiteres Attribut AKTIV soll nun bearbeitet und gespeichert werden können.

Es sieht folgendermaßen aus:

...
...
<AUFGABE Id='ID1' AKTIV='Ja'>
...
<AUFGABE Id='ID2' AKTIV='Ja'>
...
<AUFGABE Id='ID3' AKTIV='Nein'>
...
usw.

Ich habe die Datei über XMLDocument geladen und bereits herausgefunden, wie ich einzelne Elemente der Datei auslese.
Doch wie kann ich bestimmte oben genannte Details ändern und in der Datei speichern?
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Di 31.07.07 15:52 
Am besten, Du suchst Dir eine XML-Komponente/Klasse deiner Wahl (z.B. MSXML), lädst das XML-Objekt, veränderst nach Gutdünken und speicherst das dann wieder ab.

_________________
Na denn, dann. Bis dann, denn.