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

SourceForge.net noreply at sourceforge.net
Fri Apr 13 15:32:04 CEST 2007


Bugs item #1698167, was opened at 2007-04-11 08:25
Message generated for change (Comment added) made by effbot
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.

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

>Comment By: Fredrik Lundh (effbot)
Date: 2007-04-13 15:32

Message:
Logged In: YES 
user_id=38376
Originator: NO

Looks like the entire Element section is missing from the current
documentation.  Thanks for reporting this; I'll take a look when I find the
time.

In the meantime, you'll find additional documentation here:
http://effbot.org/zone/element.htm

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

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