Bill Kinnersley, 10.05.2010 19:59:
- XML files are text files, and should be read as text.

Sorry, but the only sane way to read them is as binary data. Passing unicode text to the parser will interfere with the encoding declaration at the beginning.


- The XML processor is required to return end-of-line as a single '\n',
regardless of which OS or programming language.

Interesting. I wasn't aware of that, but it's true.

http://www.w3.org/TR/REC-xml/#sec-line-ends

Stefan
_______________________________________________
XML-SIG maillist  -  XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig

Reply via email to