Change xmlnode values using XMLDOM

jordi79jordi79 Member Posts: 275
Hi,
I have managed to open an xml file and read values from a xml file using XMLDOM. But how do I change text values in a xml node?

I tried something like:

XMLNode := XMLDOM.selectSingleNode('nfeProc/NFe');
xmlnode.text := 'new text';

But this does not work.

Comments

  • jordi79jordi79 Member Posts: 275
    Hi,

    Found a solution to my own problem.

    Just have to call xmldom.save('c:\tmp.xml');

    to save the changes.
Sign In or Register to comment.