SOT : & in XML-documents

Thomas Weholt 2002 at weholt.org
Tue Oct 8 14:59:59 EDT 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"?>

and

'<?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?

TIA,
Thomas





More information about the Python-list mailing list