I am trying to export data from Excel as XML using the Workbook.ExportXml Method . With some files, this method throws a NullReferenceException, even though the file does contain a valid XML Map that can be used from Excel to correctly export data in XML format.
Please notice, I am able to reproduce the issue as you mentioned by using your template file and sample code. I found that ExportXml with XML Map is throwing “NullReferenceException”. I have logged a ticket with an id “CELLSNET-49497” for your issue. We will look into it soon.
Once we have an update on it, we will let you know.
This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.
Since this is our first time working with your libraries, could you give us an estimate on when the fix will be available for us to test? Will it be integrated in the next release (is there a schedule for that?) or can we expect it sooner?
You may expect the fix in a couple of days. We share a fix in the forums for the users once it passes QA and we have included other enhancements, etc.
Yes, sure, our official releases include all the previous fixes and other enhancements. Please note, we publish official release of the product (in Downloads and Nuget repos.) once in a month. Our next official release of the API, i.e., Aspose.Cells for .NET v21.11 is expected around mid November, 2021. You will also be notified once the next release is published.
You are right. I found it still produces the same issue with your new file as I tested. I have reopened your issue again. We will be looking into your issue and get back to you soon.
We found the XmlMap definition(schema) in the new source file “TestExcel_2.xlsx” is quite different and more complex. We decided to create new engine to parse such schemas. We have logged a separate ticket with an id “CELLSNET-49595” for this issue. This will take significantly more time. Once we have an update on it, we will let you know here.
PS. we closed the older/existing ticket “CELLSNET-49497” and will be working on the new ticket (CELLSNET-49595).
We have not evaluated your issue thoroughly, so might not comment or provide eta on it.
Also, since we will be creating new engine to parse complex schemas, so this task might take some time. We will get back to you and try to provide an estimate (if possible).
When export to xml, we need to know the structure of XmlMap which is defined by schema(You can open the source xlsx file by a zip tool and check ‘xl/xmlMaps.xml’ in zip). As the screenshot schema_2.png (13.4 KB) highlighted, the element ‘/CISReporting/CISRecordInfo’ is defined outside by type="CISRecordType", currently we have issues while parsing it.
We will try to provide a fix in this week to fix the NullReferenceException first.
We have installed this new version and can confirm that the issue with this specific Excel file has been fixed. Thank you! We will let you know if we find anything else during our testing with other files.
It is nice to know that the fix works for your needs well. And, sure, take your time to evaluate the new fix and in the event of further queries or issue, feel free to write us back.
The issues you have found earlier (filed as CELLSNET-49497,CELLSNET-49595) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao