whereas the first line contains
<?xml version="1.0" encoding="UTF-8"?>
and the second line contains all the data.
I suspect the "ta>" is coming from a snippet of </geocode_data>
I removed it but it is re-written upon every cache update. I will add some debugging and see if I can find the culprit. I wouldn't bother but each query returns a warning and that is time consuming...