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: minidom namespace problems
Type: behavior Stage:
Components: Library (Lib), XML Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder: normalize namespace from minidom
View: 1621421
Assigned To: Nosy List: ajaksu2, akuchling, paulpach
Priority: normal Keywords:

Created on 2005-12-02 19:47 by akuchling, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg60843 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2005-12-02 19:47
Noted on c.l.py: the minidom writexml() function
doesn't tidy up namespace declarations, so you can
output documents that have incorrect namespace
declarations.

DOM Level 3, appendix B, specifies an algorithm for
normalizing namespaces; see
http://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html
.  minidom probably needs to acquire the
normalizeNamespace method, and then writexml() can call
it before doing its work.


msg60844 - (view) Author: Paul Pacheco (paulpach) Date: 2006-12-23 20:04
I implemented this and uploaded a patch and test case here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1621421&group_id=5470&atid=305470

enjoy :)
msg84691 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-30 22:36
Closing as issue 1621421 has better discussion and patch.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42652
2009-03-30 22:36:37ajaksu2setstatus: open -> closed

superseder: normalize namespace from minidom
type: behavior
components: + XML

nosy: + ajaksu2
messages: + msg84691
resolution: duplicate
2009-03-30 18:04:08ajaksu2linkissue1621421 dependencies
2005-12-02 19:47:07akuchlingcreate