xml parsing escape characters

"Martin v. Löwis" martin at v.loewis.de
Thu Jan 20 12:46:12 EST 2005


Irmen de Jong wrote:
> The unescaping is usually done for you by the xml parser that you use.

Usually, but not in this case. If you have a text that looks like
XML, and you want to put it into an XML element, the XML file uses
< and >. The XML parser unescapes that as < and >. However, it
does not then consider the < and > as markup, and it shouldn't.

Regards,
Martin



More information about the Python-list mailing list