writing to a XML Node -> node is empty
Posted: Wed Feb 26, 2020 12:23 pm
Hi,
I have created an xml tree with all the nodes. I want to overwrite the text in a node. I noticed that when I use an Umlaut the revXMLPutIntoNode command creates an empty node (example 1). Without an Umlaut it works (example 2).
I know that I can use textencode
But then my XML file looks like:
But I would prefer that it looks like:
I would prefer that the XML stays human readable as much as possible in a simple text program like TextEdit. Is this a silly idea? If not, how can I achieve this? Btw. Äiti is Finnish and means Mother, in case you wanted to know... Best. Oliver
I have created an xml tree with all the nodes. I want to overwrite the text in a node. I noticed that when I use an Umlaut the revXMLPutIntoNode command creates an empty node (example 1). Without an Umlaut it works (example 2).
Code: Select all
(1) revXMLPutIntoNode treeID,"speech/speechname","äiti"
Code: Select all
(2) revXMLPutIntoNode treeID,"speech/speechname","aiti"
Code: Select all
revXMLPutIntoNode treeID,"speech/speechname",textencode("äiti", "UTF8")
Code: Select all
<?xml version="1.0"?>
<speech>
<speechname>äiti</speechname>
Code: Select all
<?xml version="1.0"?>
<speech>
<speechname>Äiti</speechname>