is it possible to change data in existing XML File?
i try to write data with revXMLPutIntoNode. at first it looks like as it works. i write it into file and read out.
but if i read it a second time or open the XML file with editor, there is the old data.
in my test i use the example of ...7011-how-to-read-in-data-from-an-xml-file
and change the loadPreferences command to:
Code: Select all
command loadPreferences
local tTree
put readPreferencesToXMLTree() into tTree
if tTree is empty then
exit loadPreferences
end if
if the short name of target = "writeData" then
revXMLPutIntoNode tTree, "preferences/textSize", 456
end if
processPreferencesTree tTree
revDeleteXMLTree tTree
end loadPreferences
Thank you