[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

Stefan Behnel report at bugs.python.org
Wed Jul 27 13:59:04 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue18304>
_______________________________________


More information about the Python-bugs-list mailing list