<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=484314700-22072004>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=484314700-22072004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=484314700-22072004>I apologize if I am 
sending my question to the wrong email list.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=484314700-22072004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=484314700-22072004><FONT face=Arial size=2>I am trying to 
copy a node and its children from one XML document to</FONT></DIV>
<DIV><FONT face=Arial size=2>another one. I clone the node from document A and 
then append it to the</FONT></DIV>
<DIV><FONT face=Arial size=2>root node in document B. If I have elements of 
copied node in document A</FONT></DIV>
<DIV><FONT face=Arial size=2>correctly indented with '\n', in the new document, 
for each new<SPAN class=484314700-22072004> </SPAN>line I</FONT></DIV>
<DIV><FONT face=Arial size=2>have three new<SPAN class=484314700-22072004> 
</SPAN>lines. When I remove the new Lines from document A, every</FONT></DIV>
<DIV><FONT face=Arial size=2>thing looks fine in document B.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=484314700-22072004><FONT face=Arial size=2>I use toprettyxml 
function to print document to&nbsp;a file.</FONT></SPAN></DIV>
<DIV><SPAN class=484314700-22072004><FONT face=Arial size=2>I use 
xml.dom.minidom module in python 2.2.2 on Red Hat 9.0.</FONT></SPAN></DIV>
<DIV><SPAN class=484314700-22072004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=484314700-22072004><FONT face=Arial size=2>Appreciate any 
help,</FONT></SPAN></DIV>
<DIV><SPAN class=484314700-22072004><FONT face=Arial 
size=2>Mehdi</FONT></SPAN></SPAN></FONT></DIV></BODY></HTML>