How to embed AdSense code into Blogger xml template (Parse HTML for Adsense Code)

To use AdSense code inside a post it is necessary to "escape" the AdSense code. The reason: If you put the code into your template just as it is written when you display the source code for the page, the Google data is invisible. if you tried to tried to insert the Google Adsense code directly into your Blogger XML Template will shows t 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."

This is an example of a piece of Adsense code as given out by Adsense:


Parsed adsense code:



You can use a web-tool at www.blogcrowds.com for parsing the Google Adsense code or others.
This tool also can be used for inserting HTML code to your posting in Blogger.com


Label: Pasting AdSense code into Blogger, parsing adsense code, Google adsense in blogger

site visitor