Saturday, January 27, 2007

How To Stimulate Xml Parsing Errors Inwards Blogger Template

Have yous e'er encountered Parsing Error inward your blogger template? Then today nosotros are sharing a tutorial alongside yous which volition attention yous to ready XML parsing errors inward blogger.

This variety of mistake occurs when yous elbow grease to insert Adsense JavaScript, Facebook JavaScript or other widgets made alongside JavaScript inward your blogger template. When yous insert whatsoever JavaScript alongside closed to exceptional characters inward your blogger template as well as so it shows this mistake “The reference to entity "version" must terminate alongside the ';' delimiter."

And, this mistake confuses as well as irritates many bloggers so for such bloggers today inward this article, nosotros volition present yous how to ready XML Parsing errors inward blogger template.

What is XML Parsing Errors 

We convey briefly mentioned most XML parsing mistake to a higher house as well as hither are going to explicate it flake to a greater extent than for your convenience.

This mistake normally hap when yous to elbow grease to upload whatsoever third-part JavaScript inward your blogger template. It is too called syntax mistake every bit it refers to coding. This mistake looks similar the below one;
Error parsing XML, trouble 1005, column 91: The reference to entity "version" must terminate alongside the ';' delimiter.

There are closed to exceptional characters inward yous script which causes this XML Parsing error. Following are the exceptional characters which are illegal as well as drive parsing errors;
  1. < (Less Than)
  2.  > (Greater Than)
  3.  & - Ampersand
  4. ‘ (Single Quote)
  5. “ (Double Quote)
And your script volition non move until yous ready that mistake as well as for your solution yous may refer this take as well as clear your all queries as well as larn the solution.

How to Fix XML Parsing Errors inward Blogger

Here are the steps which yous take to follow inward fellowship to Fix XML Parsing Errors inward Blogger. Now without taking your fourth dimension to a greater extent than larn to the steps to explore your solution.

Method #1:  Replacing Some Special Characters

This is start method which yous tin role to ready XML parsing mistake which is past times replacing closed to exceptional characters inward your JavaScript.

Special Replace With
> &gt;
< &lt;
& &amp;
&quot;
Now wherever yous detect these exceptional characters inward your JavaScript as well as so supersede it alongside to a higher house mentioned characters. For example, if yous detect > inward your code as well as so only take away it as well as supersede it alongside &gt; as well as and so parsing mistake volition hold upward fixed.

Method #2: Insert Script inward CDATA Section

The CDATA Refers to Character information which acquit the text information as well as does non allow XML to parse the information within CDATA department as well as the information within it rest unparsed including those exceptional characters, therefore forbid parsing error. CDATA department starts with <![CDATA[  and ends with ]]>, your script volition hold upward included betwixt it.

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

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

Ones yous convey uploaded your script within CDATA as well as so your XML parsing mistake volition hold upward solved alongside consummate ease.

This was our take to brand yous guys aware alongside the procedure of fixing XML parsing error. We are certain that this take would convey been proven helpful for yous guys. If yous all the same convey whatsoever confusion left related to this article as well as so lend your confusion inward the comment box. I shall larn dorsum to your queries every bit presently every bit possible.

Was it helpful? Then don’t forget to praise our move alongside your shares as well as likes.

No comments:

Post a Comment