MIME type: text/xml XML general-purpose markup language and structured document format. Primarily used for the exchange of data across different systems in computer networks. Uses a hierarchical model for the representation of structured data. Stores data in a tree-based structure consisting of markup tags, attributes, and character contents. Plain text file, normally encoded as UTF-8. XML is an acronym derived from Extensible Markup Language. Is a subset of the Standard Generalized Markup Language (SGML). Developed since 1996 by the XML Working Group. Published in 2001 as W3C standard recommendation RFC 3076.
Import and Export fully support the XML standard Version 1.0.
Import uses a specific Import converter for XML-based file formats if possible, otherwise it imports the file as generic XML and returns an XMLObject expression.
Import["file.xml", "XML"] always imports as generic XML.
Since both XML and Mathematica represent data as a tree structure, there is a natural mapping from one to the other. Mathematica stores XML data structures as nested XMLElement objects, and an entire XML document as XML data embedded in an XMLObject.