This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Mon Aug 31 18:54:25 -0700 2009 | |
| |
fixture.xml | Mon Aug 31 19:14:15 -0700 2009 | |
| |
simplexml.py | Mon Aug 31 19:13:17 -0700 2009 |
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"]







