Tools: DFG: Add Doctype and declaration to writer.
Tools: DFG: Add write method to dump the xml files.