A Simple Python Elementtree Example

I just wish folks would include simple examples of stuff like XML parsing with ElementTree. Here are several examples from my Python for Informatics: Exploring Information book:

Python 2.0

http://www.pythonlearn.com/code/xml1.py

http://www.pythonlearn.com/code/xml2.py

Python 3.0

http://www.pythonlearn.com/code3/xml1.py

http://www.pythonlearn.com/code3/xml2.py

Comments are closed.