B
BobNoobGuy
Guest
Found some kb on append text at the end of an xml file
Progress KB - How to append text at the end of an XML file?
is there similar solution to add text at the beginning? or I have to resort to import the file and rewriting it to a new file?
thank you
Continue reading...
Progress KB - How to append text at the end of an XML file?
Code:
OUTPUT TO VALUE ("cust.xml") APPEND.
/* Append a new line character to the end of the file */
PUT UNFORMATTED "~n ".
/* Append some text after the new line character */
PUT UNFORMATTED "this is the appended text".
OUTPUT CLOSE.
is there similar solution to add text at the beginning? or I have to resort to import the file and rewriting it to a new file?
thank you
Continue reading...