Message242208
What would you have it do in the general case, should it concatenate all the text in:
>>> root4 = ET.fromstring('<a>abc<b>def</b>ghi</a>')
>>> root4.text
'abc'
If I'm interpreting the XML spec correctly ( http://www.w3.org/TR/2006/REC-xml-20060816/#sec-starttags section [43]), the optional character data must be a the beginning of the element before any other elements, comments, or processing instructions:
content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)*
In other words, I'm not sure your XML is considered well-formed. |
|
Date |
User |
Action |
Args |
2015-04-29 01:56:00 | rhettinger | unlink | issue24072 messages |
2015-04-29 01:51:48 | rhettinger | set | recipients:
+ rhettinger, jlaurens |
2015-04-29 01:51:47 | rhettinger | set | messageid: <1430272307.99.0.935285656535.issue24072@psf.upfronthosting.co.za> |
2015-04-29 01:51:47 | rhettinger | link | issue24072 messages |
2015-04-29 01:51:47 | rhettinger | create | |
|