[Patches] [ python-Patches-423394 ] Fix pulldom to preserve ns attributes

noreply@sourceforge.net noreply@sourceforge.net
Fri, 11 May 2001 11:04:42 -0700


Patches item #423394, was updated on 2001-05-11 11:04
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=423394&group_id=5470

Category: XML
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix pulldom to preserve ns attributes

Initial Comment:
Here is a fix for pulldom.py that preserves 
xmlns attributes that declare namespaces. 

The current pulldom / minidom captures xml namespace 
information in elements and attributes, but the 
actual namespace declaration attributes 
(xmlns:foo="...") are not preserved on the element 
where they appear. 

This makes it impossible for 
certain applications that do more complex name 
dereferencing (XMLSchema is an example) that 
requires not only namespace uris but 
also the prefixes used and the original scope 
information.

The current patch preserves xmlns="" and 
xmlns:foo="" as *non-namespace qualified* 
attributes, which appears to be the norm in other 
DOM implementations.

Pls let me know if you have any questions.

-Brian (brian@digicool.com)

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

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