Trotzdem Danke!
Habe es jetzt so hinbekommen
:
Delphi-Quellcode:
xHTPCNoteNode := doc.selectSingleNode('//group[@Name="Programs"]');
xHTPCNoteNode := xHTPCNoteNode.appendChild(doc.createElement('program'));
xHTPCNoteNode.attributes.setNamedItem(doc.createAttribute('location'));
xHTPCNoteNode.attributes.getNamedItem('location').nodeValue := AppPath;
xHTPCNoteNode := xHTPCNoteNode.appendChild(doc.createElement('StartDelay'));
xHTPCNoteNode.text := IntToStr(Delay);
Result:
Code:
<program location="c:\windows\notepad.exe">
<StartDelay>5</StartDelay>
</program>