Hello, I need to add ~twenty lines of HTML right after the <body> tag.
Does lxml provide a way to read that data from a variable, to keep things simple?
======== for body in root.xpath('//body[@*]'): et.SubElement(body,"<p>",HTML_block) ======== Thank you. _______________________________________________ lxml - The Python XML Toolkit mailing list -- lxml@python.org To unsubscribe send an email to lxml-le...@python.org https://mail.python.org/mailman3/lists/lxml.python.org/ Member address: arch...@mail-archive.com