Problem [bug?] with minidom

Neal Norwitz neal at
Sat Feb 8 03:55:47 CET 2003

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?


More information about the Python-list mailing list