When I try calling DocumentBuilder.insertHtml(html) with the following simplified HTML, I get a java.lang.IllegalArgumentException thrown:
Here is the stacktrace of the exception:
Exception in thread “main” java.lang.IllegalArgumentException: nodeI’ve attached the test Java code also. The initial HTML had other named anchors and hyperlinks but I’ve pared it down to this simple example. Also, I upgraded to Aspose.Word for Java 14.9.0 and it still occurs.
at com.aspose.words.DocumentBuilder.moveTo(Unknown Source)
at com.aspose.words.zzZU5.zzZOt(Unknown Source)
at com.aspose.words.zzZU5.zzZ(Unknown Source)
at com.aspose.words.zzZU5.zzW(Unknown Source)
at com.aspose.words.zzZU5.zzZ(Unknown Source)
at com.aspose.words.zzZU5.zzP(Unknown Source)
at com.aspose.words.zzZU5.zzQ(Unknown Source)
at com.aspose.words.zzZU5.zzP(Unknown Source)
at com.aspose.words.zzZU5.zzQ(Unknown Source)
at com.aspose.words.zzZU5.zzP(Unknown Source)
at com.aspose.words.zzZU5.zzQ(Unknown Source)
at com.aspose.words.zzZU5.zzZ(Unknown Source)
at com.aspose.words.DocumentBuilder.zzZ(Unknown Source)
at com.aspose.words.DocumentBuilder.insertHtml(Unknown Source)
at Test2.main(Test2.java:40)