[XML-SIG] [BUG] xml.dom.minidom on Windows.

Thomas B. Passin tpassin@comcast.net
Wed, 09 Apr 2003 18:53:50 -0400


[Mark Bucciarelli]
> The attached code snippet produces peculiar results on Windows.  
> Namely, it truncates text node data when there is only one grandchild 
> tag.
> 
> This error occurs on Windows XP, with Python 2.2.2 (#37, Oct 14, 2002, 
> 17:02:34) [MSC 32 bit (Intel)]  but not on Linux with Python 2.2.1 
> (#1, Aug 30 2002, 12:15:30) [GCC 3.2 20020822 (Red Hat Linux Rawhide 
> 3.2-4)]
> 

Your example worked fine on my Win2000/Py2.2 0.8.2 system.

> The output I get on Windows is shown below.  The test script includes 
> a very similar text string that works correctly.  What's kind of fun 
> is that if you start to reduce the length of the second granchild 
> tag, from "abcdef" to "abcde" and then to "abcd" at some point the 
> "works" example will fail as well.  The shorter you make it the more 
> trunctated the nodeValue of the text node becomes.
> 

It still worked for me even truncated all the way down to "a"...

Cheers,

Tom P