I have the exact same problem.
I thought it might have come from something in the older template. Apparently not.
I created a brand new 2013 form with a single element with no luck.
same error - This form contains invalid XML it claims the XML document must have a top element which it does!
Am I missing something here? Any help ...