I recently started blogging again. One of the first things I did, I inserted some javascript code in the usual template that blogger provides. I saved the template and I got a bundle of errors. The first few errors were related to XML parsing, the new blogger engine couldn't parse my code. Apparently this is because of using "&" directly instead of "&", OK my fault. I fix these issues and then when I think that all should be well, I refresh my page to see

"Code corrupted. Insert fresh copy."
in the place where I inserted the code. After looking at the generated code, I see that my code is not in the place it should be, because the javascript code is actually inside html quotation characters (namely <!-- and -->) so the blogger engine didn't think it was any use and left them out of the generated code. I removed the quotes and voila, it works.

Hope this helps someone.

--

Bloggerda yeni sayılırım, bir javascript kodu eklemeye çalıştığımda çıkan hataları anlatacağım. İlk olarak, şablonu kaydet butonuna tıklayınca blogger amcam ben bunu parse edemiyorum sen bunu XML yap öyle gel dedi. Hemen "&" işaretlerini "&amp;" yaparak isteğini yerine getirdim. Daha sonra şablonu kaydettim. Sevinçle tarayıcımın "yenile" düğmesine basmıştım ki kodun olduğu bölümde
"Code corrupted. Insert fresh copy."
yazısını gördüm. Blogger amcamın oluşturduğu koda direk sayfadan bakınca eklediğim kodun yerinde yeller estiğini gördüm. Neymiş, blogger amcam javascript kodunun yorum kodları arasında (<!-- ve -->) olduğunu görünce gereksiz olduğunu sanarak oluşturduğu koda eklememiş. Kodu yorumlardan kurtarınca mutlu mesut hayatımıza devam edebiliriz.

Umarım birilerine yardımı dokunur.

--

tayfun