I've extracted the digsig part from your example, tidied it up and wrote
the code to parse it. Now it's up to you to make sense of all that data.
I am here again, i have many many code to generate digsig tags with data, do you work in generate the XML ?
I want to see if we write something to extend lxml and include digsig.