Stefan Behnel added the comment:

Here is a proposed patch for a new function "strip_namespaces(tree)" that 
discards all namespaces from tags and attributes in a (sub-)tree, so that 
subsequent processing does not have to deal with them.

The "__all__" test is failing (have to figure out how to fix that), and docs 
are missing (it's only a proposal for now). Comments welcome.

----------
keywords: +patch
versions: +Python 3.6 -Python 3.4
Added file: http://bugs.python.org/file43912/etree_strip_namespaces.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18304>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to