Is it possible to somehow create element with default text value? So I would not need to do it like this?
from lxml import etree
root = etree.Element('root')
a = etree.SubElement(root, 'a')
a.text = 'some text' # Avoid this extra step?
I mean you can specify attributes in SubElement, but I don't see a way to specify text in it.