Message242256
The documentation for xml.etree.ElementTree.Element.text reads "If the element is created from an XML file the attribute will contain any text found between the element tags."
import xml.etree.ElementTree as ET
root3 = ET.fromstring('<a><b/>TEXT</a>')
print(root3.text)
CURRENT OUTPUT
None
"TEXT" is between the elements tags but does not appear in the output
BTW : this is well formed xml and has nothing to do with tail. |
|
Date |
User |
Action |
Args |
2015-04-29 23:34:55 | jlaurens | set | recipients:
+ jlaurens |
2015-04-29 23:34:55 | jlaurens | set | messageid: <1430350495.43.0.91352789573.issue24079@psf.upfronthosting.co.za> |
2015-04-29 23:34:55 | jlaurens | link | issue24079 messages |
2015-04-29 23:34:55 | jlaurens | create | |
|