FromSymbolicXML[expr]
converts a SymbolicXML expression expr to a more native format, if one is available.
Details and Options
Examples
Basic Examples
See Also
Tech Notes
Related Guides
XML`
XML`
FromSymbolicXML
FromSymbolicXML[expr]
converts a SymbolicXML expression expr to a more native format, if one is available.
Details and Options
- To use FromSymbolicXML, you first need to load the XML Package using Needs["XML`"].
- FromSymbolicXML is the inverse of ToSymbolicXML.
- Given a SymbolicXML expression, FromSymbolicXML will attempt to interpret it.
Examples
Basic Examples (2)
Needs["XML`"]Create an ExpressionML file using Export:
Export["example1", Notebook[{Cell["I am a test file", "Text"]}], "XML"]Import this ExpressionML file as SymbolicXML:
Import["example1", "SymbolicXML"]Use the output as the argument for FromSymbolicXML to interpret the SymbolicXML as a notebook expression:
FromSymbolicXML[%]Needs["XML`"]Export["example2", x ^ 3, "XML"]!!example2Import the file as SymbolicXML:
Import["example2", "SymbolicXML"]Use FromSymbolicXML to interpret the output as a box expression:
FromSymbolicXML[%]