replace illegal xml characters

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Mar 21 05:39:59 EDT 2007


In <1174464899.057656.177410 at d57g2000hsg.googlegroups.com>, killkolor
wrote:

> I am working with InDesign exported xml and parse it in a python
> application. I learned here: http://boodebr.org/main/python/all-about-python-and-unicode
> that there actually are sets of illegal unicode characters for xml
> (and henceforth for every compliant xml parser). I already implemented
> a regex solution to replace the characters in question, but I wonder
> if there is a efficient and out-of-the-box solution somewhere out
> there for this problem. does anybody know?

Does InDesign export broken XML documents?  What exactly is your problem?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list