ByteScout Spreadsheet SDK - C# - Convert XLS to XML - ByteScout

ByteScout Spreadsheet SDK – C# – Convert XLS to XML

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Convert XLS to XML

How to convert XLS to XML in C# and ByteScout Spreadsheet SDK

The tutorial shows how to convert XLS to XML in C#

The documentation is designed to help you to implement the features on your side. What is ByteScout Spreadsheet SDK? It is the SDK that can write and read, modify and calculate Excel and CSV spreadsheets. Most popular formulas are supported. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can help you to convert XLS to XML in your C# application.

The SDK samples like this one below explain how to quickly make your application do convert XLS to XML in C# with the help of ByteScout Spreadsheet SDK. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample codes in C#.

Trial version of ByteScout Spreadsheet SDK is available for free. Source code samples are included to help you with your C# app.

Try ByteScout Spreadsheet SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System; using System.Collections.Generic; using System.IO; using System.Text; using Bytescout.Spreadsheet; using System.Diagnostics; namespace Converting_XLS_to_XML { class Program { static void Main(string[] args) { Spreadsheet document = new Spreadsheet(); document.LoadFromFile("SimpleReport.xls"); // delete output file if exists already if (File.Exists("SimpleReport.xml")){ File.Delete("SimpleReport.xml"); } document.Workbook.Worksheets[0].SaveAsXML("SimpleReport.xml"); document.Close(); // open output document in default viewer Process.Start("SimpleReport.xml"); } } }

Try ByteScout Spreadsheet SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK page

Explore ByteScout Spreadsheet SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next