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

XML Import & Export

As the world's best-developed tree-oriented symbolic language, Mathematica is uniquely suited to working with XML. Not only can Mathematica generate XML from scratch, it can also import any XML with any DTD, transform and analyze it using any of Mathematica's powerful symbolic capabilities, then export it as arbitrary XML.


Import, Export import, export XML formats

"XML" general symbolic representation of arbitrary XML

"ExpressionML" ▪ "XHTML" ▪ "MathML" ▪ "SVG" ▪ "X3D" ▪ "RSS" ▪ ...

XMLElement symbolic form of all XML elements

XMLObject symbolic wrapper for other XML components (e.g. complete documents)