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.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

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"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Explore Samples

Sign Up for ByteScout Spreadsheet SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Explore Samples

Sign Up for ByteScout Spreadsheet SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next