Does anyone know where to find a tool that converts MathML to a plain text math expression?
For example, I want to input
<math xmlns='http://www.w3.org/1998/Math/MathML'>
<mfrac>
<mrow>
<mi>cos</mi>
<mo>⁡</mo>
<mo>(</mo>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>)</mo>
</mrow>
<mrow>
<mi>sqrt</mi>
<mo>⁡</mo>
<mo>(</mo>
<mrow>
<mi>y</mi>
<mo>+</mo>
<mn>2</mn>
</mrow>
<mo>)</mo>
</mrow>
</mfrac>
</math>
And get as output the string
cos(x^2) / sqrt(y + 2)
I've been unable to find anything that works like this by searching Google.
Any help is appreciated.