[Tutor] Python new comer

Kent Johnson kent37 at tds.net
Tue May 16 15:40:48 CEST 2006


kieran flanagan wrote:
> Hey
> 
> I am currently learning Python to start scripting automated tests. A lot 
> of these tests require me to strip out values from xml docs using the 
> minidom feature. So really I am just looking for any good articles to 
> start learning Python as a whole and to learn about using Python as a 
> node iterator to strip out required info from an xml doc.

Welcome! Have you found the page of beginners' tutorials?
http://wiki.python.org/moin/BeginnersGuide/NonProgrammers

If you are just starting with Python and XML I recommend ElementTree 
rather than minidom. It is an add-on module that will be part of the 
standard library in Python 2.5.
http://effbot.org/zone/element-index.htm

This page talks about searching an ElementTree for subelements:
http://effbot.org/zone/element.htm#searching-for-subelements

Ask questions here as needed, we're very friendly! Try to be specific - 
if you have a question about how to process XML, show a snippet of XML 
and any code you have tried. If you get an error you don't understand, 
copy and paste the entire error message into your email.

Kent



More information about the Tutor mailing list