Sun XML Calc (.sxc) File Format
SXC file format
Description
Notes
Examples
Compatibility
SXC (Sun XML Calc) is an XML-based spreadsheet file format used by OpenOffice and StarOffice.
The commands ImportMatrix and ExportMatrix can read and write to the SXC format.
The general-purpose commands Import and Export also support this format.
The default output from Import for this format is a DataSeries, the individual elements of which are DataFrames corresponding to worksheets within the SXC spreadsheet.
Content-Type: application/vnd.sun.xml.calc
Import an ODS spreadsheet with demographic data on Central America.
Import⁡example/CentralAmerica.sxc,base=datadir
Maple DataArea (km^2)CapitalCapital LocationBelize22966.0Belmopan1715'N 8846'WCosta Rica51100.0San Jos956'N 845'WEl Salvador21044.8San Salvador1340'N 8910'WGuatemala108889.0Guatemala City1438'N 9030'WHonduras112492.0Tegucigalpa146'N 8713'WNicaragua130375.0Managua129'N 8616'W
Import the same data as above but returned as a table of Matrices.
Import⁡example/CentralAmerica.sxc,base=datadir,output=table
table⁡Maple Data=CountryArea (km^2)CapitalCapital LocationBelize22966.0Belmopan1715'N 8846'WCosta Rica51100.0San Jos956'N 845'WEl Salvador21044.8San Salvador1340'N 8910'WGuatemala108889.0Guatemala City1438'N 9030'WHonduras112492.0Tegucigalpa146'N 8713'WNicaragua130375.0Managua129'N 8616'W
Export a random matrix to a SXC spreadsheet in the home directory of the current user.
M≔LinearAlgebra:-RandomMatrix⁡100,2:
Export⁡example.sxc,M,base=homedir
24560
With Maple 2016, the Import command applied to SXC files now produces DataSeries objects by default. To produce a table, use Import(...,output=table).
See Also
ExportMatrix
Formats
ImportMatrix
Download Help Document