XML Syntax
Interface definitions can be defined using either a Mathematica expression or an XML definition. For many usages, the Mathematica syntax is preferred. However, in cases where you want to launch GUIs before Mathematica has been launched, the XML definition is useful.
Import and Export
You can work with the XML definition for GUIKit interfaces from within Mathematica using the Import/Export format type
. The
package adds support for this format type so that you can convert between the Mathematica and the XML formats.
Knowing that $GUIPath provides access to all your interfaces, you 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 your base frame definition.
| Out[2]= |  |
Here is that same definition imported as the Mathematica expression.
| Out[3]= |  |
You can easily switch between the XML or expression format and can even use the SymbolicXML expression in your calls to GUIRun or GUIRunModal.
| Out[107]= |  |
Here is a screen shot of what the previous definition renders.
| Out[108]= |  |
| Out[7]= |  |
| Out[9]= |  |
| Out[10]= |  |
The GUIKit deployment functions can also take the SymbolicXML definition forms as direct input.