I'm using Python's xml.dom.minidom to create an XML document. (Logical structure -> XML string, not the other way around.)
xml.dom.minidom
How do I make it escape the strings I provide so they won't be able to mess up the XML?