XML cannot be the whole program
What the hell does that mean?
You can get this error thrown up in your good old trusty Firebug console.
It expects a script to be returned as an ajax type datatype.
So all you have to do is change your datatype to output as XML.