python: xml.etree.ElementTree, removing “namespaces”

At least with lxml2, it’s possible to reduce this overhead somewhat:

root.findall("/n:molpro/n:job",
             namespaces=dict(n="http://www.molpro.net/schema/molpro2006"))

Leave a Comment