with the module \[code\]xml.etree.ElementTree\[/code\] I can pretty much create an XML file as I like, except for the most important part ( in my case ): the header.I can't find a real solution for that, my header is a costant string that I'm supposed to put right between \[code\]<?xml version="1.0"?>\[/code\] and the first xml element; any clean solutions to this ?What I mean with header it's the same thing that sometime it's called DTD ( document type definition )example:\[code\]<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd"><svg> ....</svg>\[/code\]I need to write the\[code\]<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">\[/code\]part inside the file.