Re: Parsing XML file with Minidom has problem with cr/lf

Stefan Behnel <[email protected]> Tue, 11 May 2010 08:16:13 +0200
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
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  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig