steg90
17th July 2007, 08:40
Hi,
Just wondering what is the best way to update an attribute in xml file, I use QXmlStreamReader class for reading my xml and now want to modify some attributes within it.
The dbcfilename attribute shown below, this can change and I'd like to save the xml file with the new change :
<!DOCTYPE configurationXML>
<configuration>
<dbc>
<config dbcfilename="testx150hs.dbc" loadonstart="1"/>
</dbc>
<read>
<config limits="20000" />
</read>
</configuration>
Any advice is appreciated,
Regards,
Steve
Just wondering what is the best way to update an attribute in xml file, I use QXmlStreamReader class for reading my xml and now want to modify some attributes within it.
The dbcfilename attribute shown below, this can change and I'd like to save the xml file with the new change :
<!DOCTYPE configurationXML>
<configuration>
<dbc>
<config dbcfilename="testx150hs.dbc" loadonstart="1"/>
</dbc>
<read>
<config limits="20000" />
</read>
</configuration>
Any advice is appreciated,
Regards,
Steve