homepage

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.

Author Sarbjit.singh
Recipients Sarbjit.singh, docs@python, eli.bendersky
Date 2012年08月08日.06:34:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344407679.24.0.102359835139.issue15586@psf.upfronthosting.co.za>
In-reply-to
Content
Please provide some basic usage examples for ElementTree module documentation. While parsing an xml, most common scenarios will be reading elements from xml, modifying elements, removal of elements. Though there are few examples given for modification of xml element. 
But if you look from beginners learning point of view, its very hard to just get any idea from the example that is currently provided. There is lot of text there, but what would be more helpful is some small examples for each function so that user can quickly understand its usage there only. I myself is learning Python, but in order to start using this module, i had to search lot of articles on internet on usage of this module. If we could have provided some basic use cases in Python doc itself, user would not have to rely on external sources for learning its usage.
Some Basic Scenarios:
1) Parsing an xml and finding some elements of xml
2) deletion of an element from an xml and writing back
3) Modification of an xml element
4) Usage of XPath queries (some basic usage)
History
Date User Action Args
2012年08月08日 06:34:39Sarbjit.singhsetrecipients: + Sarbjit.singh, eli.bendersky, docs@python
2012年08月08日 06:34:39Sarbjit.singhsetmessageid: <1344407679.24.0.102359835139.issue15586@psf.upfronthosting.co.za>
2012年08月08日 06:34:38Sarbjit.singhlinkissue15586 messages
2012年08月08日 06:34:36Sarbjit.singhcreate

AltStyle によって変換されたページ (->オリジナル) /