This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Add-ons & Links / XML Capabilities / Introduction /

XML and Mathematica

Mathematica 4.2 and later includes comprehensive support for XML, the metamarkup language developed by the World Wide Web Consortium (W3C) for describing structured documents and data. Using the new XML features introduced in Version 4.2, you can do any of the following:

  • Import any arbitrary XML document into Mathematica in the form of a Mathematica expression.

  • Analyze the contents of the XML document or transform its structure using Mathematica's sophisticated programming and symbolic manipulation abilities.

  • Export the resulting expression back as an XML document to share it with other users and applications.

  • Save Mathematica notebooks in an XML format using the new NotebookML Document Type Definition (DTD) defined for this purpose.

  • Import, export, and evaluate equations in MathML—the new standard for representing math on the web.

These new features make Mathematica a powerful development environment for creating and processing XML documents. They ensure complete interoperability between Mathematica and other XML applications, and between notebooks and other XML document formats.