December 29, 2020

How to Fix org.xml.sax.SAXParseException; * The reference to entity "type" must end with the ';' delimiter error

  December 29, 2020
org.xml.sax.SAXParseException; * The reference to entity "type" must end with the ';' delimiter 

This error happens when the HTML tries to execute the javascript and doesn't meet the syntax criteria.
In case if we are using any Syntax highlighter or any type of Adsense javascript in our code we may face this issue. 

Follow the below two steps to fix this. 
  • Replace all “&” with “&” in your new HTML/Javascript code that you are trying to include
This must fix your issue.

 If the issue still persists follow the next step 
  • Copy the “&” changed code and parse it to XML 
One such site for easy conversion is given below 


Now the new code can be copied anywhere in the HTML and it will not be considered for execution and no error will be shown.
logoblog

Thanks for reading How to Fix org.xml.sax.SAXParseException; * The reference to entity "type" must end with the ';' delimiter error

Previous
« Prev Post

No comments:

Post a Comment

Fixing javascript error: Cannot read properties of null (reading 'querySelector') issue when using CSS identifier in selenium

 JavaScript is another way to interact with web elements when normal selenium methods fail to act. But one issue with javascript is, it does...