MathML of input expression
- To: mathgroup at smc.vnet.net
- Subject: [mg64942] MathML of input expression
- From: DavidT <dtausky at tausky.ca>
- Date: Wed, 8 Mar 2006 01:00:16 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
How can I get Mathematica to generate the Presentation MathML of the input expression rather than of the output result. Ex: In[10]:= â?«x dx (the way this is entered is \[Integral] x \[DifferentialD] x) Out[10]= x^2/2 In[11]:= XML`MathML`ExpressionToMathML[In[10],"Formats"->"PresentationMathML"] Out[11]= <math xmlns='http://www.w3.org/1998/Math/MathML'> <mfrac> <msup> <mi>x</mi> <mn>2</mn> </msup> <mn>2</mn> </mfrac> </math> I was expecting the following output (since I asked for the MathML of the In[10] not Out[10]): <math xmlns='http://www.w3.org/1998/Math/MathML'><mrow><mo>∫</mo><mi>x</mi><mo>⁢</mo><mrow><mo>ⅆ</mo><mi>x</mi></mrow></mrow></math> Thanks Dave