In previous posts ([1], [2], [3]), we showed how to create document, add text
node, create an element node and append the element node to the document element
(root element) via xml.dom.minidom. In this post, we will show how to set
attribute of the element node.