Hi
I have created a sample data for you. We are using aspose.cell 22.2 version.
We have xml table
mapping. The ExportXml returns only the first row data. I have attached the sample1.xml and Excel file for your reference.
Please let me know if you need any more information. We purchased the license.
THE DOCTORS MANAGEMENT COMPANY
Here is the C# code for your reference.
var wb = new Workbook(@"C:\temp\DupeDebugWORKBOOK.xlsm");
var ws = wb.Worksheets[0];
wb.ImportXml(@"C:\Temp\Sample1.xml", ws.Name, 0, 0);
wb.CalculateFormula();
var excelOutput = new MemoryStream();
XmlMap mapoutput = wb.Worksheets.XmlMaps[1];
wb.ExportXml(mapoutput.Name, excelOutput);
StreamtoFileSave(excelOutput, @"C:\Temp\output.xml");
============
void StreamtoFileSave(Stream stream, String filePath)
{
using (var fileStream = File.Create(filePath))
{
stream.Position = 0;
stream.CopyTo(fileStream);
fileStream.Close();
}
}
sample1.zip (21.3 KB)