Just a little snippet that I used before but had trouble finding.
1.
from
xml.etree
import
ElementTree
2.
3.
ElementTree.tostring(xml_root_or_element)
Mainly notes to future-Twig (and for anyone else who may find them useful)
If you've found one or more of my blog posts helpful, why not say thanks by buying me a coffee or beer?
Just a little snippet that I used before but had trouble finding.
1.
from
xml.etree
import
ElementTree
2.
3.
ElementTree.tostring(xml_root_or_element)