{"id":18206663,"url":"https://github.com/stwissel/excel2xml","last_synced_at":"2025-04-07T19:29:27.273Z","repository":{"id":146028467,"uuid":"102359837","full_name":"Stwissel/Excel2XML","owner":"Stwissel","description":"Small utility that exports Excel lists to XML for easy processing with XSLT transformations","archived":false,"fork":false,"pushed_at":"2022-09-16T04:08:25.000Z","size":11462,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T20:53:39.237Z","etag":null,"topics":["excel","java","xml","xslt"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stwissel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-04T12:38:16.000Z","updated_at":"2023-08-21T22:48:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3055ad67-6047-48e4-8f4d-a8777e77215b","html_url":"https://github.com/Stwissel/Excel2XML","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"a17d1d8af2f664ee64b23a7807c767289773572f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stwissel%2FExcel2XML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stwissel%2FExcel2XML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stwissel%2FExcel2XML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stwissel%2FExcel2XML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stwissel","download_url":"https://codeload.github.com/Stwissel/Excel2XML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247715769,"owners_count":20984107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","java","xml","xslt"],"created_at":"2024-11-03T12:05:46.692Z","updated_at":"2025-04-07T19:29:27.242Z","avatar_url":"https://github.com/Stwissel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Excel2XML\nSmall utility that exports Excel lists to XML for easy processing with XSLT transformations.\n\nBusiness loves to maintain all sorts of Excel lists. Excel sort and filter capabilities make this a conventient list store.\n\nHowever when some more elaborate sorting and grouping is required and formatted reports are needed, Excel falls flat.\n\nThis utility, uses Apache POI to export an Excel file into a simplified XML format. \nThis enables a simplified creation of XML stylesheets with XPath syntax.\n \n## Features \n \n\u003cul\u003e \n \u003cli\u003eExtract workbooks in one or separate files per worksheet\u003c/li\u003e \n \u003cli\u003eIgnore all formatting\u003c/li\u003e \n \u003cli\u003eComputed cells return their last result values, unless it is a formula error, then the formula is returned\u003c/li\u003e \n \u003cli\u003eThe first line of each sheet is treated as column headers, which are extracted as columns/column elements\u003c/li\u003e \n \u003cli\u003eEach cell has a \u003ccode\u003ecolumn\u003c/code\u003e, a \u003ccode\u003erow\u003c/code\u003e and a \u003ccode\u003etitle\u003c/code\u003e attribute. The title reflects the value from the first row. This allows in XSLT to query the title instead of relying on the column number. Reordering, adding or removing columns won't kill your XSLT stylesheet that way\u003c/li\u003e \n \u003cli\u003eOptional empty cells can be generated with an attribute of \u003ccode\u003eempty=\u0026quot;true\u0026quot;\u003c/code\u003e\u003c/li\u003e \n \u003cli\u003eRuns on Java8 completely from command line\u003c/li\u003e \n \u003cli\u003eCalling it without parameters outputs the exact syntax of options\u003c/li\u003e \n\u003c/ul\u003e \n\n## Syntax\n\n`java -jar excel2xml.jar -i somefile.xlsx [-o somefile.xml] [-e] [-t template.xslt] [-s] [-w3,4]` \n\n## Parameters\n\n\u003cul\u003e \n \u003cli\u003e -i the input file in xslx format\u003c/li\u003e \n \u003cli\u003e -o the output file. If missing same name as input, but extension xml\u003c/li\u003e \n \u003cli\u003e -e generate empty cells. If missing: cells without data are skipped\u003c/li\u003e \n \u003cli\u003e -s generate a single file for the whole workbook. If missing: creates one file per sheet, uses sheet name as file name\u003c/li\u003e \n \u003cli\u003e -w comma separated list of sheets to export. Starts at 0. If missing: exports all sheets. Instead of sheet number, sheet names can be used\u003c/li\u003e \n \u003cli\u003e -t optional xslt template, will run against the XML. Adjust your output file name (extension) accordingly\n\u003c/ul\u003e  \n \n This isn't a sophisticated tool, but an itch I had to scratch.\n  \n (C) 2017,2019 St. Wissel, for license see LICENSE file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstwissel%2Fexcel2xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstwissel%2Fexcel2xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstwissel%2Fexcel2xml/lists"}