[Major Edit based on experience since 1st post two days ago.]
I am building a Python SOAP/XML script using Suds, but am struggling to get the code to generate SOAP/X
You can filter the empty elements out with a regular expression.
Assuming your XML data is in the string xmltext;
xmltext
import re filteredtext = re.sub('\s+<.*?/>', '', xmltext)