Problem [bug?] with minidom

Paul Nilsson python.newsgroup at REMOVE.paulnilsson.com
Sat Feb 8 15:25:46 EST 2003


On Fri, 07 Feb 2003 21:55:47 -0500, an infinite amount of monkeys
hijacked the computer of Neal Norwitz <neal at metaslash.com> and wrote:

>On Fri, 07 Feb 2003 20:25:38 -0500, Paul Nilsson wrote:
>
>> Hello, I was parsing a rather large XML file when I came across text
>> nodes being unexpectedly sliced in two.
>> 
>> The problem *only* seems to happen when I load from a file directly with
>> parse, not if I parse a string or preload the file into a string
>> manually. Below is some code (and output) which illustrates the
>> behaviour [this will create a small file called "junk2634.xml" when
>> run].
>
>This works with Python 2.3 which uses Expat 1.95.6 I believe.
>It does not work with Python 2.2.2+ which uses an earlier version
>of expat.  Can you try upgrading expat and see if you still
>have a problem?

Thanks, I am using 2.2.2 so this is almost certainly he problem. I'm
not going to upgrade for a while but will let you know the outcome
when I do.

Cheers, Paul. 




More information about the Python-list mailing list