diff --git a/xml.html b/xml.html index 3a0790a..08e4cca 100644 --- a/xml.html +++ b/xml.html @@ -240,10 +240,10 @@ from here on out, use lxml.etree explicitly because these functions are specific
 >>> title = lxml.etree.SubElement(new_feed, "title", attrib={"type":"html"})
 >>> print(lxml.etree.tounicode(new_feed))
-<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"></feed>
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html"/></feed>
 >>> title.text = "dive into mark"
 >>> print(lxml.etree.tounicode(new_feed))
-<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">dive into mark
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">dive into mark</title></feed>
 >>> print(lxml.etree.tounicode(new_feed, pretty_print=True))
 <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
   <title type="html">dive into mark</title>