Finding the problem with the XML was easy, but there is one line that starts with an 'invalid character' followed by some 55,000 spaces!
I tried deleting that line, but clearly it replaced a lot of substance because I kept getting invalid references, removing those references, and after about five of these I started over. That ...