Michael XU added the comment:
Thank you so much Walter. I think that might be it - it fixed this particular
instance, and it makes sense given what you have said. I'll proceed to close
this up but will follow up if I encounter this issue when the data has changed.
Thanks again!
--
Walter Dörwald added the comment:
Just a guess, but the buffer size might be so small that the text that you
expect gets passed via **two** calls to _char_data(). You should refactor your
code the simply collect all the text in _char_data() and act on it in the
_end_element() handler.
So
New submission from Michael XU :
More details available here:
https://stackoverflow.com/questions/65676934/python-xml-parsers-expat-results-differ-based-on-buffer-text-true-or-false-and
Raw data to replicate the issue is available upon request.
--
components: XML
messages: 385086