Extends the built-in PHP DOM library to make generating xml less tedious