This function usually is called after building a new dom document from scratch as in the example below.
Creates an HTML document from the dom representation. This function usually is called after building a new dom document from scratch as in the example below.