Browse files

doc comment

  • Loading branch information...
scoder committed Dec 13, 2011
1 parent 36ff336 commit 75380736d7a9e155b3fc307c0c702167e9300a23
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/lxml/lxml.etree.pyx
@@ -2838,6 +2838,8 @@ def tostring(element_or_tree, *, encoding=None, method=u"xml",
The ``doctype`` option allows passing in a plain string that will
be serialised before the XML tree. Note that passing in non
well-formed content here will make the XML output non well-formed.
+ Also, an existing doctype in the document tree will not be removed
+ when serialising an ElementTree instance.
You can prevent the tail text of the element from being serialised
by passing the boolean ``with_tail`` option. This has no impact

0 comments on commit 7538073

Please sign in to comment.