"Martin v. Löwis" wrote at 2010-5-11 09:14 +0200: >>> The correct way to parse XML files is as binary data. >> >> Why do you think so? >> >> The default "minidom" parser seems not to expect "\r\n" line endings.... > >Why do you say that? It expects them just fine, replacing them with \n >line endings, then inserting those into the DOM tree. Just as it should. >I believe the OP was complaining that it creates those text nodes in >the first place, not that it does or does not specifically do that for >\r\n line endings.
I may have misunderstood the original problem report. I have read it as: I see "\r\n" text nodes. -- Dieter _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig