WOLFRAM

Manipulate XML documents with the Wolfram Language.

Importing Raw XML...

The Wolfram Language converts XML into a symbolic expression that can then be transformed into other expressions for data analysis and visualization.

Import the XML file

Import an XML file containing information on paintings:

Transform data into a computable format

Use Cases to change the XML expression into a simpler one using transformation rules, then format with Dataset:

Out[2]=2

Query the dataset

Sort the paintings by price, from high to low:

Out[3]=3

Find the average price of a painting from this dataset:

In[4]:=4
Out[4]=4

Sort by the last name of the artists:

In[5]:=5
Out[5]=5

Visualize the data

Use DateListPlot to graph the data to see the change in price over time:

In[6]:=6
Out[6]=6

Importing other file types that contain XML...

XML code can also be found in other file types, like MathML and ExpressionML.

Import a file with the .mml extension:

In[7]:=7
Out[7]=7

The FormBox shown previously can be directly interpreted as a mathematical expression using RawBoxes:

Any MathML expression can be represented as symbolic XML:

In[9]:=9
Out[9]=9