Blogger Template Error Message: "XML document structures must start and end within the same entity."
📢 Error Message
The error message on Blogger (HTML editor) looks like this:
😵💫 Why?
Because I accidentally deleted the closing CDATA section in a script.
It was supposed to be like so:
And I — with my sleight of mouse-hand, selected one line too many — deleted the closing tag:
Then saved the template. 😂
XML was like,
(XML.) Oi!
Aye? What?
(XML.) Must start and end within the same entity!
👀 Which one?
(XML.) Read.
🧐 My script is fine, ya muppet! Save it. S. A. V. E.
(XML.) Read. 🤦♂️
I did! Why is your message vague? Are you a muppetlord?
(XML.) 🤷 R. E. A...
Fine.
💡 Solution
I was baffled by that because my script had everything escaped, the forbidden entities. I bloody checked the JavaScript code and nothing was suspicious. And then... I reread the error message more than thrice. Hm, the line number — skimmed the lines prior that error reference... ☠️⚡
The solution was, well,
put it back.
Then we can safely save the customised template.
It must be closed properly:
Above is a case of mine, trouserless CDATA section. This can also appear when we forget to close a b:if (or any other tag) in a Blogger template.
The rules:
- Every opening tag must have a matching closing tag.
- Nested tags must also close in the right order.
Otherwise, XML will throw a tantrum.
CRYPTIC TANTRUM.
Imagine if a child did that. Cryptic? I mean, that would certainly be the changeling of a changeling. The changeling within a changeling. 🤦♂️ Even the fairies would be... still indifferent. Recursion, you say? (Sips tea. Flips fairy newspaper.)

Comments
Post a Comment