Instead of manual tag parsing element.tag or node.tag we can use lxml.etree.QName(node).localname and lxml.etree.QName(node).namespace.
#1613 (comment)
Another common XML operation is reading an XML file.
Centralize this in a pure XML utility module (nxdl agnostic).