ExcelXml Class |
Namespace: PDTec.IceNet.Domain.DX.Excel.Xml
public static class ExcelXml
The ExcelXml type exposes the following members.
Name | Description | |
---|---|---|
CleanXml |
Applies a XML transformation to an Excel XML document and produces
a simplified book/page/row/cell tree.
| |
GetData |
Reads the content from an Excel XML file (SpreadsheetML format).
|
This example shows how to read the content of a multi-page Excel XML file and to write it to the console.
using (Stream s = File.OpenRead("excel.xml")) { using (XmlReader xrExcelXml = XmlReader.Create(s)) { List<ExcelXml.Table> ltBook = ExcelXml.GetData(xrExcelXml); foreach (ExcelXml.Table pTable in ltBook) { Console.WriteLine("### {0} ###", pTable.Name); foreach (string[] aRow in pTable.Data) { Console.WriteLine(CsvWriter.Join(aRow)); } } } }