Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue18304] ElementTree gets awkward to use if there is an xmlns

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Aug 11, 2013, 8:53 AM

Post #1 of 2 (14 views)
Permalink
[issue18304] ElementTree gets awkward to use if there is an xmlns

Stefan Behnel added the comment:

FWIW, lxml.etree supports wildcards like '{*}tag' in searches, and this is otherwise quite rarely a problem in practice.

I'm -1 on the proposed feature and wouldn't mind rejecting this all together. (At least change the title to something more appropriate.)

----------
components: +Library (Lib), XML -Extension Modules
nosy: +eli.bendersky, scoder
versions: +Python 3.4 -Python 2.7

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue18304>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 11, 2013, 9:06 PM

Post #2 of 2 (8 views)
Permalink
[issue18304] ElementTree gets awkward to use if there is an xmlns [In reply to]

Bryce Nesbitt added the comment:

The mere existence of popular solutions like
'item.tag.split("}")[1][0:]' argues something is wrong. What could
lmxl do to make this cleaner (even if the ticket proposal is junk).

----------
title: ElementTree -- provide a way to ignore namespace in tags and seaches -> ElementTree gets awkward to use if there is an xmlns

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue18304>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.