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.

更多信息更多信息

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

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (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]=