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
.tail
before, but I was using it on my el object. Did not realise I had to use it on img. Thank you for enlightening me! – Reachmedown