When xml.dom.minidom parses a piece of xml, it automagically converts escape characters for greater than and less than into their visual representation. For example:
>>> import xml.dom.minidom
>>> s = "<example>4 < 5</example>"
>>> x = xml.dom.minidom.parseString(s)
>>> x.firstChild.firstChild.data
u'4 < 5'
Does anyone know how to stop minidom from doing this?