I have been looking for a while a python module/API that does something I believe is quite simple:
- Read an XML file
- Add/Edit/Remove entries
So far I've found several snippets that interface with complicated object oriented databases, but nothing dead simple as:
xml = etree.parse ('file.xml')
xml.add(xpath, new_node(attrs))
xml.remove(xpath)
xml.edit(xpath, new_attrs(attrs))
xml.write()
Most surely I'm misunderstanding the API, but some light will be very welcome.
Thanks in advance !