I have a little py module that implements the Composite pattern to represent xml file contents. My class is called ExtensionRegistry because that's what I use it for, you could rename it to whatever you wanted. After parsing, this allows me to access my xml file contents like this:
xmlFile = ExtensionRegistry(xmlFile = 'test.xml') print xmlFile['log']['a'].getDataItems() would result in printing >>text Let me know if you want me to send it to you. -- http://mail.python.org/mailman/listinfo/python-list