What does Firebug "XML cannot be the whole program" error message mean?

user122299 picture user122299 · Sep 3, 2009 · Viewed 11.6k times · Source

I just got this error message in Firebug. A google search reveals nothing but other mystified people! Does anyone have any idea what it means?

It's being indicated on the last line of this 3-line script:

<script>
    g_BuildServer = "/";
</script>

Answer

tomdemuyt picture tomdemuyt · Sep 16, 2009

If you put JavaScript in a js file (which I assume you did), do NOT put the script tags, put

g_BuildServer = "/";

only.

Otherwise, to the parser, you just provided an XML document as a script.