Worksheet - Maple Programming Help

Home : Support : Online Help : Connectivity : Web Features : Worksheet Package : Worksheet/Convert

Worksheet

 Convert
 parse a worksheet into an XML data structure

 Calling Sequence Convert(worksheet, format=output_format)

Parameters

 worksheet - Maple XML data structure; valid Maple worksheet format=output_format - (optional) equation; output_format can be either "maple8_xml" or "mw" (default)

Description

 • The Convert command converts a worksheet given as a Maple XML data structure to the specified format. The two output formats supported are maple8_xml and mw. The result is converted to an XML data structure that can be used with the XMLTools package. The XML document structure returned by this procedure is of type Worksheet:-worksheet.

Examples

 > $\mathrm{with}\left(\mathrm{Worksheet}\right):$
 > $\mathrm{dir}≔\mathrm{kernelopts}\left(\mathrm{mapledir}\right):$
 > $\mathrm{doc}≔\mathrm{ReadFile}\left(\mathrm{cat}\left(\mathrm{dir},"/examplesclassic/obj.mws"\right),\mathrm{format}="maple8_xml"\right):$
 > $\mathrm{mws}≔\mathrm{Convert}\left(\mathrm{doc},\mathrm{format}="mw"\right):$