Insert Google Adsense Into Blogger XML Post Body

Have you ever tried to insert the Google Adsense code directly into your Blogger XML Template and get this error?

Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The processing instruction target matching "[xX][mM][lL]" is not allowed.

So, you resolve to insert the Adsense code using blogger widgets. However that means your widgets can not appear within each post, the best spots to place your ads. Don't worry, there is a way of inserting Adsense code straight into your XML templates.

Since Blogger started using XML everything is more strict and standardized. The above error simply mean the Adsense code is not standized XML and solve it we need to replace all the html character such as '<' with '>' '"' with '"' please read this article.

You can use your text editor to replace all the HTML, but Blogcrowds also has an HTML parse that takes care of everything for you. Now with the code you can paste it anywhere in your HTML code with no error at all.

For further tips for where in the XML Template you should paste the parsed HTML code please read this article.