Import and ExportInterface definitions can be defined using either a Mathematica expression or an XML definition. The GUIKit` package has built-in Import/Export functionality so that you can convert between the expression and XML format using the format name "GUIKitXML". Knowing that $GUIPath provides access to all our interfaces, we can use this to easily import XML definitions into Mathematica as the equivalent expression format. Here is what the contents of the XML file looks like for our base frame definition.
| Out[2]= |  |
Here is that same definition imported as the Mathematica expression.
| Out[3]= |  |
We can easily switch between the XML or expression format and can even use the SymbolicXML expression in our calls to GUIRun or GUIRunModal.
| Out[5]= |  |
Here is a screen shot of what the previous definition renders.
| Out[6]= |  |
| Out[7]= |  |
| Out[9]= |  |
| Out[10]= |  |
The GUIKit deployment functions can also take the SymbolicXML definition forms as direct input.
|