Skip to content

Instantly share code, notes, and snippets.

View justinjdickow's full-sized avatar

Justin Dickow justinjdickow

View GitHub Profile
@adrianp
adrianp / parse.py
Created February 10, 2012 17:54
Recursevly parsing an XML in Python 3 using ElementTree
"""To run this: $ python3 parse.py test.xml
The script will pase a XML file and print its node tags.
Compatible with Python 3; changing the print statements should make this
compatible with Python 2.
"""
import sys