This example takes a LaTeX expression, converts it to MathML, and then to Maple
You can achieve the same thing by passing the option output = maple.
Remember that backslash is an escape character, n means newline, t means tab, and \ means a backslash. When inputting expressions in a string, the backslashes will need to be doubled-up. This is not needed when reading strings from a file.
Here is a nested fraction
If that fraction had numbers instead of variables, the converted expression would simplify. To see the structure, use the output=inert option, with will insert inert operators. Inert operators are prefixed with a % symbol, and don't evaluate.