I have a xml files which contains English and French strings as messages. I am trying to read a specific element from xml file and replace their value with some another specifc value.
Example (In the below xml file): Replace "Bonjour le monde" with " bonjour le monde à nouveau".
Any idea how to achieve this using QXmlStreamReader and QXmlStreamWriter? My sample program is not working properlty. I am using qt 5.14.0
//xml file : myfile.xml
<?xml version='1.0' encoding='utf-8'?>
<TS language="fr_FR" version="2.1">
<context>
<name>TRStringFactory</name>
<message>
<location filename="test.cpp" line="28" />
<source>none</source>
<translation type="unfinished">aucun</translation>
</message>
<message>
<location filename="test.cpp" line="29" />
<source>hello world</source>
<translation type="unfinished">Bonjour le monde</translation>
</message>
</context>
</TS>
Answer :-->