<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=562112817-19032008><FONT face=Arial size=2>I am appending one 
lxml tree's root element into another lxml tree.&nbsp; Everything seems to work 
fine until I serialize (a.k.a. tostring) the containing tree.&nbsp; At which 
point everything is serialized, however the appended subtree ignores the given 
pretty_print setting.&nbsp; Is there a way to&nbsp;have the&nbsp;included tree 
be just more elements in the bigger tree?&nbsp; Or, do I misunderstand the 
problem.</FONT></SPAN></DIV>
<DIV><SPAN class=562112817-19032008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=562112817-19032008><FONT face=Arial size=2>Note that I haven't 
updated to lxml 2 yet.</FONT></SPAN></DIV>
<DIV><SPAN class=562112817-19032008><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>python:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
2.5.1<BR>lxml.etree:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (1, 3, 3, 
0)<BR>libxml used:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (2, 6, 30)<BR>libxml 
compiled:&nbsp;&nbsp; (2, 6, 29)<BR>libxslt used:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(1, 1, 21)<BR>libxslt compiled:&nbsp; (1, 1, 21)<BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=562112817-19032008>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV align=left><STRONG><FONT face=Arial size=2>John W. 
Lovell</FONT></STRONG></DIV>
<DIV align=left><FONT face=Arial size=2>Web Applications Engineer</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Northwest Educational Service 
District</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>1601 R Avenue</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Anacortes, WA 98221</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2><A 
href="http://www.esd189.org/">www.esd189.org</A></FONT></DIV>
<DIV align=left><EM><FONT face=Arial size=2>Together We Can 
...</FONT></EM></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>