Here is a part of XML:
<item><img src="cat.jpg" /> Picture of a cat</item>
Extracting the tag is easy. Just do:
et = xml.etree.ElementTree.fromstring(our_xml_string)
img = et.find('img')
But how to get the text immediately after it (Picture of a cat)? Doing the following returns a blank string:
print et.text