public
Description: A simplistic take on SimpleXML for Python
Homepage:
Clone URL: git://github.com/joestump/python-simplexml.git
name age message
file README.markdown Mon Aug 31 18:54:25 -0700 2009 Added notes. [joestump]
file fixture.xml Mon Aug 31 19:14:15 -0700 2009 Added fixture.xml for testing. [joestump]
file simplexml.py Mon Aug 31 19:13:17 -0700 2009 Removed tests directory and added support for m... [joestump]
README.markdown

Overview

When I started working in Python I'd heard rumors that parsing XML was kind of a pain in the ass. Coming from PHP I had SimpleXML that worked perfectly fine for 99% of the XML parsing I had to do. When it finally came to needing to parse some simplistic XML documents I decided to write this small wrapper around ElementTree.

Usage

from simplexml import parse
xml = parse("person.xml")
print xml.name.first
print xml.name.last
print xml.name["origin"]