开发者

Processing xml file VS. processing excel file from .Net

I would like to ask what should be faster: reading excel file from .Net or 开发者_开发问答reading xml file which contains the same data. The same is for writing.

Thank you very much in advance.

mayap.


The smaller the file, the faster it will be read.

However, in .NET, it is easier to use XML with the classes of the BCL (Base Class Library) as there is no excel support built in.

You can use Linq2Xml to query the XML structure and work with it.


There is no simple answer for that question. There are too many variables and you should try it yourself with the options available to you and with a representative data set (xml file, xls / xlsx workbook, ???).

SpreadsheetGear for .NET provides a fast API for reading (and creating / modifying / rendering / writing / etc...) Excel workbooks from .NET. You can see live ASP.NET samples here and download the free trial here.

Disclaimer: I own SpreadsheetGear LLC

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜