This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: xml.etree document element.tag
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: effbot Nosy List: dlocke, effbot, phr
Priority: normal Keywords:

Created on 2007-04-11 06:25 by phr, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg31759 - (view) Author: paul rubin (phr) Date: 2007-04-11 06:25
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.
msg31760 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2007-04-13 13:32
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
msg31761 - (view) Author: dlocke (dlocke) Date: 2007-08-17 18:56
I concur that any documentation about the Element object seems to be missing.  Is there any timetable for getting this added to the documentation?
msg59130 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2008-01-03 14:39
This is fixed in the development version, so I'm closing this for now. 
The updated docs can be found here:

http://docs.python.org/dev/library/xml.etree.elementtree.html
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44828
2008-01-03 14:39:09effbotsetstatus: open -> closed
resolution: fixed
messages: + msg59130
2007-04-11 06:25:59phrcreate