<!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>
"""<BR>
<BR>
""" Parse the xml file """<BR>
xmlDocument = minidom.parse(self.configFile)<BR>
""" Parse xml main section """<BR>
mainSection = xmlDocument.getElementsByTagName('Config')<BR>
""" Parse xml Global section """<BR>
configSection = mainSection[0]<BR>
<BR>
""" Parse Ports section """<BR>
socketList = configSection.getElementsByTagName('Sockets')<BR>
<BR>
"""<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>