[ python-Bugs-1698167 ] xml.etree document element.tag

SourceForge.net noreply at sourceforge.net
Wed Apr 11 18:00:14 CEST 2007


Bugs item #1698167, was opened at 2007-04-11 01:25
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1698167&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: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: paul rubin (phr)
>Assigned to: Fredrik Lundh (effbot)
Summary: xml.etree document element.tag

Initial Comment:
The xml.etree docs vaguely mention an implementation-dependent Element interface without describing it in any detail.  I could not figure out from the docs how to get the tag name of an element returned from (say) the getiterator interface.  That is, for an element like <foo/>, I wanted the string "foo".  Examining the library source showed that e.tag does the job, at least some of the time, and that was enough to get my app working.  Could the actual situation please be documented--thanks.

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

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


More information about the Python-bugs-list mailing list