
Automate Factur-X and ZUGFeRD e-Invoices in Python with PDF.co
15 MIN READ
PDF.co Web API provides a suite of Web APIs and online tools that encompass a range of functionalities including data extraction and file conversion.
Our XLS to XML Web API is crafted to facilitate seamless data transfer between systems via the internet, efficiently converting your XLS files into XML format. This conversion process preserves the original structure, layout, and elements such as text, images, tables, etc.
Hosted on the reliable Amazon AWS infrastructure, our API engine ensures robust security. Data transmissions from your devices to our servers are safeguarded with SSL/TLS encryption. For more in-depth information on our security protocols, please visit: https://docs.pdf.co/security.
The XLS to XML Web API empowers you with enhanced workbook management capabilities, allowing for the addition, identification, and extraction of specific business data from XLS files, tasks that were previously challenging or unattainable.
Opting for the XLS to XML Web API means adopting an efficient online document storage and processing format. It supports the communication of almost any data in any written human language, making it incredibly versatile.
The XLS to XML Web API is designed to be platform-agnostic, ensuring compatibility across various operating systems such as Windows, Linux, Mac, and more. It's equally functional on both desktop and mobile applications, offering broad accessibility.
The PDF.co Web API has over 300+ integrations available. Here is a sample of integrations below:
We will use this sample XLS file to convert into XML and use the /v1/xls/convert/to/xml for the endpoints.
Now let’s take a quick look at the /v1/xls/convert/to/xml endpoint’s parameters and their uses.
https://api.pdf.co/v1/xls/convert/to/xmlurl: Required. Link to the source file.pages: Optional. Comma-separated list of page indices (or ranges) to process. IMPORTANT: the very first page starts with 0 (zero). To set a range use the dash –, for example: 0, 2-5, 7-.expiration: Optional. Output link expiration in minutes. Default is 60 (i.e. 60 minutes or 1 hour). After this delay generated output file(s) (if any) will be auto-removed from PDF.co temporary files storage. Max allowed expiration period depends on your current subscription plan. To store permanent input files (e.g. re-usable images, PDF, documents), please use PDF.co built-in Files Storage instead.inline: Optional. Must be one of: true to return data as inline or false to return link to the output file (default).worksheetIndex: Optional. Index of the worksheet to use.encrypt: Optional. Enable encryption for the output file: true or false.async: Optional. Runs processing asynchronously. Returns jobId to use with job/check: true or false.name: Optional. Output file name.profiles: Optional. Must be a String. Set custom configuration. See profiles examples.curl --location --request POST 'https://api.pdf.co/v1/xls/convert/to/xml' \
--header 'x-api-key: your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://docs.google.com/spreadsheets/d/1-S2p_oL40Q-KkEhSc9khiqNcNx46BuIC/edit?usp=sharing&ouid=114887936429289482092&rtpof=true&sd=true"
}'The XLS to XML Web API cURL sample code and API documentation.
Create an account, get an API key and test a request.