Empty XML nodes are stripped before sending payload

Empty XML nodes were breaking a SOAP webservice I was dealing with, so I have added a simple regex to strip them before sending the payload.  Not sure if this behaviour could have any potential negative impact, so will leave the decision up to the maintainer as to whether to accept this pull request.