XML`
XML`
BoxesToSymbolicMathML
BoxesToSymbolicMathML[boxes]
converts the Wolfram Language box structure, boxes, into a MathML-flavored SymbolicXML structure.
Details and Options
- To use BoxesToSymbolicMathML, you first need to load the XML Package using Needs["XML`"].
- The following options can be given:
-
"Annotations" {} annotations to add to the output (acceptable values are combinations of "DocumentHeader", "XMLDeclaration", and "DOCTYPEDeclaration") "Formats" {"PresentationMathML"} type of MathML markup to generate "IncludeMarkupAnnotations" True whether to add annotation when exporting a formula with constructs specific to the Wolfram Language and no clear counterpart in MathML "MathAttributes" {} attributes to add to the root element of the MathML "UseUnicodePlane1Characters" True whether to replace plane 1 Unicode characters with similar plane 0 characters
Examples
Basic Examples (1)Summary of the most common use cases
In[1]:=1
![](Files/BoxesToSymbolicMathML.en/I_1.png)
✖
https://wolfram.com/xid/0bo5yh7ar7s5wmv8-lp2fsa
Generate some MathML-flavored SymbolicXML:
In[2]:=2
![](Files/BoxesToSymbolicMathML.en/I_2.png)
✖
https://wolfram.com/xid/0bo5yh7ar7s5wmv8-uyu
Out[2]=2
![](Files/BoxesToSymbolicMathML.en/O_1.png)
Use the result to convert the data into a Wolfram Language box expression:
In[3]:=3
![](Files/BoxesToSymbolicMathML.en/I_3.png)
✖
https://wolfram.com/xid/0bo5yh7ar7s5wmv8-yjn
Out[3]=3
![](Files/BoxesToSymbolicMathML.en/O_2.png)
In[4]:=4
![](Files/BoxesToSymbolicMathML.en/I_4.png)
✖
https://wolfram.com/xid/0bo5yh7ar7s5wmv8-po4
Out[4]=4
![](Files/BoxesToSymbolicMathML.en/O_3.png)