Thursday, 4 February 2016

Blogger template “XML error message” while uploding template


This validation error is a bit tricky. "Content is not allowed in prolog" usually means that there is an illegal byte in the beginning of the file. This is sometimes caused by editing the file in an editor and not saving it properly as UTF-8 without byte order marking. Have a look at this: Content is not allowed in prolog
I had a check of your blogger template using an XML validator, and there are quite a number of errors still in the file. I would go and check the file first using http://validator.w3.org/, and then make sure that the xml is valid utf-8. I suspect it is not since there are ♥ characters in there that don't look right.

you are placing the body and the HTML tag in the wrong places..
from line 228 to 231:
<noembed>
<body><script type="text/javascript">function setAttributeOnload(object, attribute, val) {if(window.addEventListener) {window.addEventListener("load",function(){ object[attribute] = val; }, false);} else 
</script></body></noembed> </html>
should be:
<body><noembed><script type="text/javascript">function setAttributeOnload(object, attribute, val) {if(window.addEventListener) {window.addEventListener("load",function(){ object[attribute] = val; }, false);} else 
</script></noembed>
line 316:
</div><br /></div></td></td></tr><tr><td colspan="2"></td></tr></table></div></body>
remove </body>
line 337:
       </script></html>
replace with:
       </script></body></html>
Please oh please, make sure that your tags are properly placed! By simply putting it in an IDE, you can see that the HTML tags are not properly closed or structured.

0 comments:

Post a Comment