I was recently using the SPWeb.ProcessBatchData function (more information here) when the following error code reared its ugly head:
The XML looked fine, but there was a sinister problem at play. The UTF declaration was in lowercase INSTEAD OF UPPERCASE.
Thats three hours of my life I am never getting back. Oh well, live and learn (and share!).