Worksheet
Convert
parse a worksheet into an XML data structure
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Convert(worksheet, opts)
Convert(worksheet, outputfilename, opts)
worksheet
-
Maple XML data structure; valid Maple worksheet
outputfilename
(optional) string or none
opts
(optional) one or more additional options as described below
format = string or name
Specifies the output format. Supported values are
_Inert
Maple inert form
jupyter
Jupyter format
maple, workbook
Maple workbook format
maple8
Legacy Maple 8 file format
mapletext
Maple Text format (MPL format)
mw
Maple worksheet format
procedure
Maple procedure
The default is inferred from the output filename, if given. Otherwise Maple worksheet format is assumed.
The Convert command converts a worksheet to the specified format.
The worksheet may be given as a filepath or a Maple XML data structure.
The output format is controlled by the format option.
If the optional input outputfilename is provided, the converted data is written to this file in the specified format. Otherwise, the data is returned directly by the command.
withWorksheet:
dir≔kerneloptsmapledir:
doc≔ReadFilecatdir,/examplesclassic/obj.mws,format=maple8_xml:
mws≔Convertdoc,format=mw:
besselws≔FileTools:-JoinPathexample,BesselsEquation.mw,base=datadir
besselws≔/maple/cbat-build/active/297794/data/example/BesselsEquation.mw
Worksheet:-Convertbesselws,format=procedure
proc $x^2*diffyx,x,x+x*diffyx,x+−ν^2+x^2*yx=0end proc
The Worksheet[Convert] command was updated in Maple 2025.
The outputfilename option was introduced in Maple 2025.
The format option was updated in Maple 2025.
For more information on Maple 2025 changes, see Updates in Maple 2025.
See Also
with
Worksheet[ReadFile]
XMLTools
XMLTools[WriteFile]
Download Help Document