This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Bugfix for #847665 (XMLGenerator dies in namespace mode)
Type: Stage:
Components: XML Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis, ngrig
Priority: normal Keywords: patch

Created on 2006-04-02 12:53 by ngrig, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
saxutils.diff ngrig, 2006-04-02 12:53 Patch for Lib\xml\sax\saxutils.py
saxtest.py ngrig, 2006-04-02 13:13 Test for NS-aware XMLGenerator
Messages (3)
msg49944 - (view) Author: Nikolai Grigoriev (ngrig) Date: 2006-04-02 12:53
This is a patch for xml.sax.saxutils.XMLGenerator
class. It fixes the ancient bug #847665 - XMLGenerator
dies in namespace-aware mode. Technically, the patch
defines a function _qname() to write QName from (NSURI,
local name) pair, and calls this function where
appropriate inside startElementNS()/endElementNS(). The
patch is applicable to both maintenance branch
(release24-maint) and trunk versions:

python/branches/release24-maint/Lib/xml/sax/saxutils.py
python/trunk/Lib/xmlcore/sax/saxutils.py

More details and a test are available in the bug
tracker: 
http://sourceforge.net/tracker/index.php?func=detail&aid=847665&group_id=5470&atid=105470

msg49945 - (view) Author: Nikolai Grigoriev (ngrig) Date: 2006-04-02 13:13
Logged In: YES 
user_id=195108

For convenience, I add a simple test for basic cases. This
is for Python 2.4 (it imports xml.sax, rather than
xmlcore.sax). 
msg49946 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-02-12 12:22
Thanks for the patch. Committed as r53754 and r53755.
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43146
2006-04-02 12:53:00ngrigcreate