[XML-SIG] Parsing XML file with Minidom has problem with cr/lf

Dieter Maurer dieter at handshake.de
Tue May 11 09:42:25 CEST 2010


"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


More information about the XML-SIG mailing list