Hi all<br><br>I have an svg file i'm creating on the fly. How do I add the doctype and xml pi? They're not an element per se, and there is no function to add them. Am I suppose to add them as elements after all?<br>
<br>I have something like this:<br><br>self.svgRoot = ET.Element("svg", xmlns=r'<a href="http://www.w3.org/2000/svg'">http://www.w3.org/2000/svg'</a>)<br> ET.SubElement(self.svgRoot, "g", transform="scale(1,-1)")<br>
....<br>....<br>....<br>self.tree = ET.ElementTree(self.svgRoot)<br>...<br><br>thanks<br>dave<br>