TIL: There appear to be different whitespace collapsing rules in XML that – at least some of the parsers we used – don’t agree on. Some appear to expect that <a> </a>
results in an empty string, others don’t. Well, .trim()
it is, I guess.
(I didn’t research any specs on this.)
Or maybe it’s just bugs, of course.