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

Free Support Forum - aspose.com

Error Loading 2003Wordml doument as Aspose Document


Please find the attached word2003xml document(Sample.xml)

When I try to load the document as Aspose wordml document. I am getting document corruption exception.

Code Used to load aspose document:
Path path = Paths.get(“C:/temp/short_wrong.xml”);
byte[] docx = Files.readAllBytes(path);
Document wordmlDocument = new Document(
new ByteArrayInputStream(docx), loadOptions);

Exception in thread “main” com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
at com.aspose.words.FileFormatUtil.zzZ(Unknown Source)
at com.aspose.words.Document.zzY(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.mckesson.mhs.cm.language.AsposeWordUtil.main(AsposeWordUtil.java:1339)
Caused by: java.lang.IllegalArgumentException: The reference node is not a child of this node.

Please let me know what’s the issue with this document

Hi Muthulakshmi,

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-13412. 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-13412) have been fixed in this .NET update and this Java update.

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