How to Fix XML Parsing Errors in Blogger Template

Advertisements
Have you ever encountered Parsing Error in your blogger template? Then today we are sharing a tutorial with you which will help you to fix XML parsing errors in blogger.

This kind of error occurs when you try to insert Adsense JavaScript, Facebook JavaScript or other widgets made with JavaScript in your blogger template. When you insert any JavaScript with some special characters in your blogger template then it shows this error “The reference to entity "version" must end with the ';' delimiter."

And, this error confuses and irritates many bloggers so for such bloggers today in this article, we will show you how to fix XML Parsing errors in blogger template.

What is XML Parsing Errors 

We have briefly mentioned about XML parsing error above and here are going to explain it bit more for your convenience.

This error usually occur when you to try to upload any third-part JavaScript in your blogger template. It is also called syntax error as it refers to coding. This error looks like the below one;
Error parsing XML, line 1005, column 91: The reference to entity "version" must end with the ';' delimiter.

There are some special characters in you script which causes this XML Parsing error. Following are the special characters which are illegal and cause parsing errors;
  1. < (Less Than)
  2.  > (Greater Than)
  3.  & - Ampersand
  4. ‘ (Single Quote)
  5. “ (Double Quote)
And your script will not work until you fix that error and for your solution you may refer this guide and clear your all queries and get the solution.

How to Fix XML Parsing Errors in Blogger

Here are the steps which you need to follow in order to Fix XML Parsing Errors in Blogger. Now without taking your time more get to the steps to explore your solution.

Method #1:  Replacing Some Special Characters

This is first method which you can use to fix XML parsing error which is by replacing some special characters in your JavaScript.

Special Replace With
> &gt;
< &lt;
& &amp;
&quot;
Now wherever you find these special characters in your JavaScript then replace it with above mentioned characters. For example, if you find > in your code then simply remove it and replace it with &gt; and then parsing error will be fixed.

Method #2: Insert Script in CDATA Section

The CDATA Refers to Character data which carry the text data and does not let XML to parse the data within CDATA section and the data within it remain unparsed including those special characters, thus prevent parsing error. CDATA section starts with <![CDATA[  and ends with ]]>, your script will be included between it.

Refer the below code to enclose your script correctly inside CDATA section;

<script type="text/javascript">
//<![CDATA[
    Add Your JavaScript Code Here
//]]>
</script>

Ones you have uploaded your script within CDATA then your XML parsing error will be solved with complete ease.

This was our guide to make you guys aware with the process of fixing XML parsing error. We are sure that this guide would have been proven helpful for you guys. If you still have any confusion left related to this article then lend your confusion in the comment box. I shall get back to your queries as soon as possible.

Was it helpful? Then don’t forget to praise our work with your shares and likes.

Advertisements

The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).

Comment With:
OR
Choose Wisely!

1 comments:

September 3, 2015 at 6:54 PM

Tutorial is really nice, thanks for share MBL.

Post a Comment

We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

Helping You to do Cool Things With Blogger Since 2012™.

© Copyright 2012 - 2018. MBL Networks, All Rights are Strictly Reserved.