durumdara, 02.12.2011 09:13:
So: may I don't understand the things well, but I thought that parser
drop the "nondata" CRLF-s + other characters (not preserve them).
Well, it does that, at least on my side (which is not under Windows):
===
original='''
AnyText
Dear Stefan!
So: may I don't understand the things well, but I thought that parser
drop the "nondata" CRLF-s + other characters (not preserve them).
Then don't matters that I read the XML from a file, or I create it
from code, because all of them generating SAME RESULT.
But Python don't do that.
durumdara, 30.11.2011 13:08:
As I see that XML parsing is "wrong" in Python.
You didn't say what you are using for parsing, but from your example, it
appears likely that you are using the xml.dom.minidom module.
I must use predefined XML files, parsing them, extending them, and
produce som
Hi!
As I see that XML parsing is "wrong" in Python.
I must use predefined XML files, parsing them, extending them, and
produce some result.
But as I see that in Windows this is working wrong.
When the predefined XMLs are "formatted" (prettied) with CRLFs, then
the parser keeps these plus LF cha