Header Ads

Breaking News
recent

How to Fix XML Passing Errors in Blogger Template 2016

Hello friends.Have you ever encountered Passing Error in your blogger template? The is the great issue of all blogger using friends.So today i am sharing an article 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 or any other scripts 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 create problem for  many bloggers so for such bloggers today in this article, I will show you how to fix XML Parsing errors in blogger template.


What is XML Parsing Errors 

I have explained little 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.It create a lot of difficulty.

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 that is by replacing some special characters in your JavaScript.So, replace the given special characters the the given codes:

SpecialReplace With
>&gt;
<&lt;
&&amp;
&quot;
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.

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


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




Once you have uploaded your with in CDATA them XML passing error will be solved easily and you get rid from errors. 


I hope that after reading this article you can easily fix XML passing errors in blogger.If you like this article share it on social media for other blogger brothers.
Let  me know you if you have any problem regarding to this article.If you have any problem you can comment me in comment box.Thanks for reading this article.Stay tuned for more articles.

No comments:

Powered by Blogger.