<!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>
Thanks for he help, so far.<BR>
<BR>
I am still having some questions on writing my new string back to the xml file after I found what I was looking for and changed it.<BR>
<BR>
Extracts:<BR>
<BR>
xmlDocument = minidom.parse(file_name) # open existing file for parsing<BR>
main = xmlDocument.getElementsByTagName('Config')<BR>
main.getElementsByTagName('Connection')<BR>
configSection = mainSection[0]<BR>
<BR>
for node in configSection: #Here I get the NamedNodeMap info<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password = node.getAttribute(&quot;password&quot;)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Do stuff to the password and I have 'newPass'<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; node.removeAttribute('password') # I take out my old attribute and it's value<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; node.setAttribute('password', newPass)<BR>
<BR>
<BR>
At this stage I have my new attribute and it's new value, but how do I write that to my file in the same place?<BR>
I have to get a 'writer', how do I do this?<BR>
Do I have to write all the data back or can I just replace the pieces I changed?<BR>
<BR>
Thanks,<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TABLE CELLPADDING="2">
<TR>
<TD>
<B>Johan </B>
</TD>
</TR>
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>