clean up some ElementTree usage code
Created originally on Bitbucket by sbehnel
Here are two patches that clean up some usages of the ElementTree API in the code. The first one also improves the robustness of using the .text property, which can return None (and not the empty string) in some cases.
Attachments: remove_unnecessary_qname_usages.patchclean_up_usages_of_elementtree_find_and_text.patch