custom xml pretty print

akbar akbarhome at gmail.com
Sun Nov 20 06:41:34 EST 2005


Hi,

I have Document. If I print it like this:

print doc.toprettyxml("  ")

I will get this:
<a>
  <b>
    <c>
      blablablabla
    </c>
  </b>
</a>

What do I have to do if I want to print it like this:
<a>
  <b>
    <c>blablablabla</c>
  </b>
</a>

Thank you.




More information about the Python-list mailing list