IllegalStateException: Invalid hex string

Hi,


After trying to load the attached xml document this Exception was thrown: IllegalStateException: Invalid hex string. Can you please check this?


Thanks,
Zeljko

Code:

public void testAspose() throws Exception {
Document doc = new Document(“Test.xml”);
}

Hi Zeljko,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.12.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-13001. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,
Hi Zeljko,

Regarding WORDSNET-13001, our product team has completed the work on your issue and has come to a conclusion that they won't be able to implement the fix to your issue. Your issue (WORDSNET-13001) will be closed with 'Won't Fix' resolution.

The problem occurs because this is not a valid file. For example, MS Word cannot open this file either. This file contains attribute "w:usb-3" that contains value with newline (\r\n). Aspose.Words can unfortunately not parse this value to number. The only problem in file is paragraph break in XML attribute value. Once it is removed manually, everything is fine. If we can help you with anything else, please feel free to ask.

Best regards,