Escaping strings in python

exorhoogy

New Member
Could someone help me with the following:I need to create an xml file via python automatically.I get stuck in the following case:\[code\]plugin = SubElement(simconf, "plugin")plugin.text = "log.log(time + "\n");"\[/code\]Thus, there is a problem in "\n", python take it as own command and goes to the next line while I want it as part of my xml file.Does anyone know how to parse it?
 
Back
Top