OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Convert a mathematical expression to the ExpressionML format:

str = ExportString[1/(3+a - x^2), "ExpressionML"]

(RefLink[Import, paclet:ref/Import]) automatically recognizes the ExpressionML format when reading XML data:

StringFormat[str]

Show the available (RefLink[Import, paclet:ref/Import]) elements:

ImportString[str,"Elements"]

Convert ExpressionML to an evaluated expression:

ImportString[str]

Import without evaluating:

ImportString[str, "HeldExpression"]

Convert ExpressionML to a Wolfram Language typesetting expression:

ImportString[str, "Boxes"]

Import ExpressionML to a complete symbolic XML expression:

ImportString[str, "XMLObject"]

Import ExpressionML to a symbolic XML fragment:

ImportString[str, "XMLElement"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Formats:  (RefLink[ExpressionML, paclet:ref/format/ExpressionML])  ▪  (RefLink[MathML, paclet:ref/format/MathML])  ▪  (RefLink[MX, paclet:ref/format/MX])  ▪  (RefLink[NB, paclet:ref/format/NB])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}, {▪(RefLinkPlain[XML Formats, paclet:guide/XMLFormats])}, {▪(RefLinkPlain[XML Import & Export, paclet:guide/XMLImportAndExport])}})}})