EasyXLS™ library allows you to convert an Excel file to XML. The Excel file can be in XLSX, XLSM, XLSB or XLS file format.
EasyXLS can be successfully used inclusively to convert large Excel files to XML, Excel files with big volume of data with fast converting time.
EasyXLS permits you to convert Excel to XML file without Excel installed, without Interop or any other additional software installed.
Basically, the Excel sheet data is converted to XML. The sheet can be specified by name or it can be the active sheet. The entire sheet data can be added to XML or only a range of cells.
The generated XML document structure is described in the EasyXLS.xsd schema file.
// Create an instance of the class that imports Excel files
ExcelDocument workbook = new ExcelDocument();
// Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1");
' Create an instance of the class that imports Excel filesDim workbook As New ExcelDocument
' Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")
C++// Create an instance of the class that imports Excel files
EasyXLS::IExcelDocumentPtr workbook;
hr = CoCreateInstance(__uuidof(EasyXLS::ExcelDocument),
NULL,
CLSCTX_ALL,
__uuidof(EasyXLS::IExcelDocument),
(void**) &workbook) ;
// Convert Excel file to XML
workbook->easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1");
C++.NET// Create an instance of the class that imports Excel files
ExcelDocument ^workbook = gcnew ExcelDocument();
// Convert Excel file to XML
workbook->easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1");
// Create an instance of the class that imports Excel files
ExcelDocument workbook = new ExcelDocument();
// Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1");
.NET:// Create an instance of the class that imports Excel files
$workbook = new COM("EasyXLS.ExcelDocument");
// Convert Excel file to XML
$workbook->easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1");
Java:// Create an instance of the class that imports Excel files
$workbook = new java("EasyXLS.ExcelDocument");
// Convert Excel file to XML
$workbook->easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1");
' Create an instance of the class that imports Excel filesset workbook = Server.CreateObject("EasyXLS.ExcelDocument")
' Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")
' Create an instance of the class that imports Excel filesSet workbook = CreateObject("EasyXLS.ExcelDocument")
' Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")
' Create an instance of the class that imports Excel filesset workbook = CreateObject("EasyXLS.ExcelDocument")
' Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")
<!-- Create an instance of the class that imports Excel files --><cfobject type="java"class="EasyXLS.ExcelDocument"name="workbook"action="CREATE"><!-- Convert Excel file to XML --><cfset ret = workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")>
.NET:# Create an instance of the class that imports Excel files
workbook = ExcelDocument()
# Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")
Java:# Create an instance of the class that imports Excel files
workbook = gateway.jvm.ExcelDocument()
# Convert Excel file to XML
workbook.easy_ReadXLSXSheet_AsXML("file.xml", "file.xlsx", "Sheet1")
The data inside a sheet can be converted to XML. The sheet can be identified by the sheet name or it can be the active sheet. If the Excel file was already loaded in memory using one of the methods that loads the Excel file, also ExcelDocument.easy_ReadExcelWorksheet_AsXML method can be used.
Convert Excel cell range to XML
EasyXLS enables you to convert Excel data either from the entire sheet or from a range of cells. Specifying only a range of cells is a very useful option especially for large Excel files because it reduces the speed of the conversion process.
All the methods that allow reading Excel files to XML have parameters that permit reading only a range of cells.
Getting started with EasyXLS Excel library
To download the trial version of EasyXLS Excel Library, press the below button:
If you already own a license key, you may login and download EasyXLS from your account.