DOMDocument generation done