SOT : & in XML-documents

Thomas Weholt 2002 at
Tue Oct 8 20:59:59 CEST 2002

I'm trying to parse an old fileformat into xml. The problem is that the
character & appears from time to time in the original file. Tried to put

'<?xml version="1.0" encoding="iso-8859-1"?>


'<?xml version="1.0" encoding="UTF-8"?>

in at the top of the file, but without luck.

Anybody got any clues on how to avoid problems with characters like this?


More information about the Python-list mailing list