The package encoding/xml provides a convenient way to parse or generate .xml files. However, the file generated are in format
<xxx attr1="aaa" attr2="bbb"></xxx>
even if there is no content in the element. Some server do not accept this kind of format.
So how to get the .xml file looks like
<xxx attr1="aaa" attr2="bbb" />