OK, I solved the problem but I still don't get what went wrong. Solution - use tree builder in order to create the new xml file (previously I was "manually" creating it).
I'm still curious so I'm adding a link to a short and very simple script that gets an xml (containing non ascii chars) from the web and saves some of the elements to 2 different local xml files - one is created by XMLWriter and the other is created manually. you could see that parsing of the first local file is OK while parsing of the "manually" created xml file fails. obviously I'm doing something wrong and I'd love to learn what. the toy script: http://staff.science.uva.nl/~otsur/code/xmlConversions.py Thaks for all your help, Oren -- http://mail.python.org/mailman/listinfo/python-list