TJ: use lxml instead of xml.
TJ: domain delete child in the proper way.
TJ: removed magic xml for lxml.