[Python-bugs-list] [ python-Bugs-718380 ] xml.dom.minidom - text node truncated

SourceForge.net noreply@sourceforge.net
Thu, 10 Apr 2003 05:43:55 -0700


Bugs item #718380, was opened at 2003-04-09 12:53
Message generated for change (Comment added) made by mbucc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=718380&group_id=5470

Category: XML
Group: Python 2.2.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Mark Bucciarelli (mbucc)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml.dom.minidom - text node truncated

Initial Comment:
The attached program raises an assertion error on Windows, but 
does not on Linux.  The text child node of the TYPE element is 
trunctated when the "does_not_work" string is parsed, but is fine 
when the "works" string is parsed.  If you progressively shorten the 
length of the "abcdef" element ("abcde", "abcd", ...), eventually the 
"works" string will fail as well. 

----------------------------------------------------------------------

>Comment By: Mark Bucciarelli (mbucc)
Date: 2003-04-10 08:43

Message:
Logged In: YES 
user_id=35056

the bug is in my script.  Need to call n.normalize() before processing the 
text nodes. 

----------------------------------------------------------------------

Comment By: Mark Bucciarelli (mbucc)
Date: 2003-04-09 17:46

Message:
Logged In: YES 
user_id=35056

Work around: use xml.sax. 
 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=718380&group_id=5470