The following examples demonstrate how a string can be parsed and converted to a Maple XML tree.
>
|
|
| (1) |
The string str is parsed and converted to an XML tree data structure doc by using the FromString command.
>
|
|
>
|
|
The ToString command converts the XML tree data structure doc and returns it as a Maple string str1.
>
|
|
>
|
|
>
|
|
The string str1 is once again parsed and converted to an XML tree data structure by using the FromString command.
>
|
|
The Display command launches the worksheets. The Display command launches the string str1 and the XML tree doc1. For information on Display command parameters, see Worksheet[Display].