replace illegal xml characters

2007-03-21 Thread killkolor
hi! 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

Re: replace illegal xml characters

2007-03-21 Thread killkolor
> 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

"finally" for unit test

2007-03-23 Thread killkolor
hi! I have a unittest framework that tests a single function that in turn works with files (takes input and outputs in the same file, no return values). In the unittest class I assign a member with all the names of my testfiles and a testdirectory. The tests call the function (which opens and writ

Re: "finally" for unit test

2007-03-23 Thread killkolor
I went with the TestCase.setUp() function. Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list