Convert - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Worksheet

  

Convert

  

parse a worksheet into an XML data structure

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Convert(worksheet, opts)

Convert(worksheet, outputfilename, opts)

Parameters

worksheet

-

Maple XML data structure; valid Maple worksheet

outputfilename

-

(optional) string or none

opts

-

(optional) one or more additional options as described below

Options

• 

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.

Description

• 

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.

Examples

withWorksheet:

dirkerneloptsmapledir:

docReadFilecatdir,/examplesclassic/obj.mws,format=maple8_xml:

mwsConvertdoc,format=mw:

besselwsFileTools:-JoinPathexample,BesselsEquation.mw,base=datadir

besselws/maple/cbat-build/active/297794/data/example/BesselsEquation.mw

(1)

Worksheet:-Convertbesselws,format=procedure

proc $x^2*diffyx,x,x+x*diffyx,x+−ν^2+x^2*yx=0end proc

(2)

Compatibility

• 

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

Worksheet[ReadFile]

XMLTools

XMLTools[WriteFile]

 


Download Help Document