A simplistic take on SimpleXML for Python
Switch branches/tags
Nothing to show
Clone or download
joestump Merge pull request #6 from jaysonsantos/develop
Some improvements and backward compatibilities with old simplexml module
Latest commit 2965570 Apr 21, 2013



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.


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