XML`
XML`
NotebookToSymbolicNotebookML
The NotebookML format is no longer supported.
NotebookToSymbolicNotebookML[expr]
converts expr to NotebookML and returns the corresponding SymbolicXML.
Details and Options
- To use NotebookToSymbolicNotebookML, you first need to load the XML Package using Needs["XML`"].
- When exporting GIF images for BoxData or GraphicsData, you need to have a filename for naming them. Control this with the "FileName" option. By default, GIF images are saved with the name "temp_N.gif" (where N is a sequential number).
- The following options can be given:
-
"Annotations" {"XMLDeclaration", "DOCTYPEDeclaration", "StyleAdvisories", "DocumentHeader"} annotations to add to the output (acceptable values are combinations of ,
,
, and
)
"GraphicsFormats" {Automatic} how to export graphics data "BoxFormats" {Automatic} how to export box data "StyleSheets" {} specify a stylesheet (CSS or XSLT) for the notebook "FileName" "temp.xml" default filename for exported images "FilesDirectory" "NBMLFiles" default directory for exported images
Examples
Basic Examples (1)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0bjifspf4fu77gq8o-l267y4
In[2]:=2

✖
https://wolfram.com/xid/0bjifspf4fu77gq8o-k67
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bjifspf4fu77gq8o-bsz
Here BoxData is exported as a GIF image. The autogenerated file name for the GIF image is in the "src" attribute:
In[4]:=4

✖
https://wolfram.com/xid/0bjifspf4fu77gq8o-s1i
Out[4]=4

Use "FilesDirectory" and "FileName" to change the directory and name of the image file:
In[5]:=5

✖
https://wolfram.com/xid/0bjifspf4fu77gq8o-pa7
Out[5]=5
