document.write("An error has ocurred<br>XML document must have a top level element.\n");