xml question?
Martin v. Löwis
loewis at informatik.hu-berlin.de
Wed Apr 24 06:32:40 EDT 2002
"Alex Adrian" <Alex.Adrian at gmx.de> writes:
> i would like to make this string xml conform? is there an easy
> filterfunction in python to convert characters like "<>éó" .... to xml
> conform characters??
Sure. XML supports arbitrary characters - you just have to declare the
encoding.
Replace
> s = """?xml version="1.0"?>
with
s = """<?xml version="1.0" encoding="iso-8859-1"?>
Regards,
Martin
More information about the Python-list
mailing list