xml question?

Alex Adrian Alex.Adrian at gmx.de
Wed Apr 24 06:23:55 EDT 2002


hallo,

i would like to make this string xml conform? is there an easy
filterfunction in python to convert characters like "<>éó" .... to xml
conform characters??

thanks for help,
alex


s = """?xml version="1.0"?>
<ticker>
<scan>
<STATUS>1</STATUS>
<UID>1986</UID>
<TEXT></TEXT>
<NAME>Dumpenv</NAME>
<FAMILY>CGI abuses</FAMILY>
<SUMMARY>Checks for the presence of /cgi-bin/dumpenv</SUMMARY>
<DESCRIPTION>""</DESCRIPTION>
<PORTS>80</PORTS>
<WWW>www.imfmetal.org/imf/main/main_about.cfm?lang=spanish</WWW>
<ORG>Federación Internacional de Trabajadores de las Industrias Metalúrgicas
de la AméricaLatina y Caribe</ORG>
</scan>
</ticker>"""






More information about the Python-list mailing list