Message1745

Author amak
Recipients
Date 2007-07-20.11:18:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hmm. 

I don't have cpython 2.4.2, I have cpython 2.4.4.

When I run your code on cpython 2.4.4, I get nothing at all, no output, zippo.

When I run your code on jython 2.2rc2, I get some output, but I can't tell whether it's correct or not, because I can't look at your XML file; I can't find a text editor that can handle 760,000 bytes all on the same line.

I suggest you put some newlines into your XML file. At least then we'll be able to see what's inside it.

It's quite possible that the extra long line is the source of your problems. I don't have a specific mechanism in mind, but do remember that files opened in text mode undergo line-ending translation, which means they pass through internal buffers and processing at some stage. It is unlikely that these buffers are big enough to hold the entirety of your 760000-byte string at once. (They should still be able to process it correctly, but perhaps there's a bug in there, caused by the enormity of the string, that has nothing to do with XML at all).

So I'd tidy up your XML as a first step, i.e. put a lot more newlines in it.
History
Date User Action Args
2008-02-20 17:17:55adminlinkissue1757419 messages
2008-02-20 17:17:55admincreate