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

Bookmark this website for more workarounds and issue fixes.

Verify Zip file contents without extracting using C# + Selenium

While doing automation testing, we may get a scenario where we need to download a zip file and to validate the contents inside it. One way t...