Note that Maple worksheets can be imported into Maple in two different formats:
-- "mw", this is the same format that is used by the Standard worksheet,
-- "maple8_xml", the format introduced in Maple 8.
Option `format` can be used to specify which XML representation to generate.
>
|
doc2 := ReadFile(wname, format = "maple8_xml"):
|
Display the worksheet you loaded by using the Display command.
Use the Convert
utility to convert worksheets in "mw" format to worksheets in "maple8_xml" format and back.
>
|
doc3 := Convert(doc, format="maple8_xml"):
|
>
|
l := XMLTools:-Compare(doc2, doc3);
|
| (3.2) |
>
|
if l <> [] then [op(l[1..-3], doc2), op(l[1..-3], doc3)] end if;
|
| (3.3) |
To convert a worksheet to ".mws" format, use the ToString command.
>
|
str := ToString(doc, format = "mws"):
|