> from xml.dom import minidom > s = "<a href='http://google.com/search?hl=en&q=foobar'>search</a>" > # ^ > # - seems to be the problem > # > # maybe it thinks I'm trying to reference the &q entity? In XML the & character must be encoded as & -- Дамјан Speak softly and carry a cellular phone.