This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients jlaurens, rhettinger
Date 2015-04-29.01:51:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430272307.99.0.935285656535.issue24072@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-29 01:56:00rhettingerunlinkissue24072 messages
2015-04-29 01:51:48rhettingersetrecipients: + rhettinger, jlaurens
2015-04-29 01:51:47rhettingersetmessageid: <1430272307.99.0.935285656535.issue24072@psf.upfronthosting.co.za>
2015-04-29 01:51:47rhettingerlinkissue24072 messages
2015-04-29 01:51:47rhettingercreate