[Patches] [ python-Patches-1621421 ] normalize namespace from minidom

SourceForge.net noreply at sourceforge.net
Sat Dec 23 21:02:43 CET 2006


Patches item #1621421, was opened at 2006-12-23 20:01
Message generated for change (Comment added) made by paulpach
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1621421&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XML
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul Pacheco (paulpach)
Assigned to: Nobody/Anonymous (nobody)
Summary: normalize namespace from minidom

Initial Comment:
This is a patch that fixes bug 1371937, along with a test case that reproduces the original problem.

The patch is a port of the algorithm described here pretty much verbatim:
http://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#normalizeDocumentAlgo

to resolve namespace declarations. The patch also calls the normalizeNamespace method before calling writexml

Note the patch is against minidom that comes with python 2.5, NOT WITH PYXML. I need this for an embedded project where pyxml is too big.



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

>Comment By: Paul Pacheco (paulpach)
Date: 2006-12-23 20:02

Message:
Logged In: YES 
user_id=794762
Originator: YES

File Added: normalizeNamespace.diff

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

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


More information about the Patches mailing list