<br><br><div class="gmail_quote">2009/1/20 Stefan Behnel <span dir="ltr">&lt;<a href="mailto:stefan_ml@behnel.de">stefan_ml@behnel.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<div class="Ih2E3d"><br>
Ovnicraft wrote:<br>
&gt; i created an xml now i want to make<br>
&gt; standalone declaration in my structure, how i can do it?<br>
<br>
</div>There isn&#39;t currently a way to set the flag programmatically, but you can<br>
just parse in the declaration like this:<br>
<br>
 &nbsp; &nbsp;doc = etree.fromstring(<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#39;&lt;?xml version=&quot;1.0&quot; standalone=&quot;true&quot;?&gt;&lt;root/&gt;&#39;)<br>
 &nbsp; &nbsp;root = doc.getroot()<br>
 &nbsp; &nbsp;root[:] = your_content_elements</blockquote><div><br>I added that header with etree.tostring(root, encoding=&#39;iso-8859-1&#39;) <br><br>but can i add a flag with standalone value?<br><br>what instruction is for create flags in a node?<br>
<br>regards,<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
Stefan<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>[b]question = (to) ? be : !be; .[/b]<br>