XML`
XML`

MathMLToExpression

Same functionality now provided by ImportString[string,{"MathML","Expression"}].

MathMLToExpression[string]

converts the string containing MathML-flavored XML text into a Wolfram Language expression.

Details

  • To use MathMLToExpression, you first need to load the XML Package using Needs["XML`"].

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Convert an expression to MathML:

In[2]:=
Click for copyable input
Out[2]=

Use MathMLToExpression to recover the original Wolfram Language expression:

In[3]:=
Click for copyable input
Out[3]=

See Also

BoxesToMathML  MathMLToBoxes  ExpressionToMathML  ExpressionToSymbolicMathML  SymbolicMathMLToExpression  BoxesToSymbolicMathML  SymbolicMathMLToBoxes

Tutorials