replace illegal xml characters

Diez B. Roggisch deets at nospam.web.de
Wed Mar 21 11:17:40 EDT 2007


killkolor wrote:

>> Does InDesign export broken XML documents?  What exactly is your problem?
> 
> yes, unfortunately it does. it uses all possible unicode characters,
> though not all are alowed in valid xml (see link in the first post).
> in any way for my application i should be checking if the xml that
> comes in is valid and replace all non-valid characters. is there
> something out there to do this?

I doubt it. Dealing with broken XML is nothing standard-modules should cope
with. The link you provided has all you need - why not just use it?


Diez



More information about the Python-list mailing list