webMathematica >

XML

Mathematica contains a large number of features for working with XML, all of which are available in webMathematica. XML can be very useful for webMathematica with its support for specific XML applications and as a general format for data interchange. The use of MathML, SVG, and XHTML will be covered in their own sections. This section will give an overview of XML and the XML features of Mathematica. It will also give some examples of why this functionality is useful to webMathematica.

Introduction to XML

<?xml version="1.0"?>
<library>
<book>
<title>A New Kind of Science</title>
<author>Stephen Wolfram</author>
</book>
<book>
<title>The Lord of the Rings</title>
<author>J.R.R. Tolkien</author>
</book>
</library>

XML Compliance

<?xml version="1.0"?>
<br/><hr/>
<br><hr>
<p>Here is a paragraph.</p><p>Here is another.</p>
<p>Here is a paragraph.<p>Here is another.

Mathematica Support for XML

In[1]:=
In[2]:=
Out[2]=
In[3]:=
Out[3]=
In[4]:=
Out[4]=
In[5]:=
Out[5]=

webMathematica XML Applications

In[1]:=
Out[1]=
In[2]:=
In[3]:=
Out[3]=