This is a simple class that can be use to compose well-formed XML or HTML documents.
It can build a tree of tags of unlimited depth.
Than it generates a string with the definitions of all tags keeping the indentation according to the depth level of each tag in the document hierarchy.