lxml supports an alternative API similar to the Amara bindery or objectify through a custom Element implementation.The main idea is to hide the usage of XML behind normal Python objects, sometimes referred to as data-binding.The algorithm is as follows: Care must be taken if different namespace prefixes have been used for the same namespace.
Also see the documentation on validation on this topic.
supports very fine-grained control over the Element classes used in a tree.
All you have to do is configure a different class lookup mechanism (or write one yourself).
The SPF (Sender Policy Framework) RR offers either an alternative or complimentary approach to DKIM by defining one or more IP addresses from which mail from any domain may be sent.
DKIM is significantly more complex than SPF but also provides significantly more functionality.