Python provides a simple xml.dom.minidom library which can be used for
XML/HTML manipulation. Here I want to share some of what I learned to
beginners on how to manipulate XML/HTML in Python.
First, we create a document DOM with root element called html. Here is the
sample code: