<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.1">
</HEAD>
<BODY>
Hi all,<BR>
I use minidom to parse xml data from a file.<BR>
I know how to get the data:<BR>
&quot;&quot;&quot;<BR>
<BR>
&quot;&quot;&quot; Parse the xml file &quot;&quot;&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlDocument = minidom.parse(self.configFile)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot; Parse xml main section &quot;&quot;&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mainSection = xmlDocument.getElementsByTagName('Config')<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot; Parse xml Global section &quot;&quot;&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; configSection = mainSection[0]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot; Parse Ports section &quot;&quot;&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; socketList = configSection.getElementsByTagName('Sockets')<BR>
<BR>
&quot;&quot;&quot;<BR>
<BR>
Now I want to change a string that a retrieved from the file and write it back to where it was. So, I get something, change it and write it back.<BR>
<BR>
How do I put the new string in the place of the old? How do I overwrite the first value with the new value?<BR>
<BR>
Thanks,<BR>
<BR>
 <BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TABLE CELLPADDING="2">
<TR>
</TR>
<TR>
</TR>
<TR>
</TR>
<TR>
<TD>
<B>Johan </B>
</TD>
</TR>
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>