We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose-html-20.9 has a broken license blacklist

I tried to use the latest version of Aspose HTML yesterday and got an exception when setting the license:

Root cause: org.xml.sax.SAXParseException: The processing instruction target matching “[xX][mM][lL]” is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
at com.aspose.html.z14.m72(Unknown Source)
at com.aspose.html.z14.m1(Unknown Source)
at com.aspose.html.License.setLicense(Unknown Source)

Turns out, it tries to load the file


and fails because this particular version of the file starts with a blank line before the actual start of the XML documents:

<?xml version="1.0"?>

This confuses the Xerces XML Parser (latest available version).
The blacklist file of version 20.8 did not start with a blank line.


We are checking the issue and will get back to you in a while.


The above case has been logged for investigation in our issue tracking system under the ticket ID HTMLJAVA-568. We will look into ticket details and will inform you as soon as it is resolved. Please spare us some time.

We are sorry for the inconvenience.


We would like to share with you that the issue has been resolved in hotfix Aspose.HTML for Java 20.9.1.