And finally, here is an embedded XHTML fragment.
"), ) ) ) print ET.tostring(page) Here's a prettyprinted version of the output from the above script::This is a paragraph with bold text in it!
This is another paragraph, with link.
Here are some reserved characters: <spam&egg>.
And finally, here is an embedded XHTML fragment.
For namespace support, you can pass a namespace map (``nsmap``) and/or a specific target ``namespace`` to the ElementMaker class:: >>> E = ElementMaker(namespace="http://my.ns/") >>> print(ET.tostring( E.test ))