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

Free Support Forum - aspose.com

XMLStreamException on save (633)


When I just load and save the attached document, this exception occurs:

java.lang.IllegalStateException: XMLStreamException: No open start element, when trying to write end element

Here’s the code I use:

InputStream inputStream = new FileInputStream(“CPAP_2013_2017version_24nov_Guinee.docx”);

Document document = new Document(inputStream);


I’m using Aspose.Words for Java 16.11.0.

Can you check this?

Hi Zeljko,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14513. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-14513) have been fixed in this Aspose.Words for .NET 17.1.0 update and this Aspose.Words for Java 17.1.0 update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.