MAIN DEFINE n om.DomNode MENU "Test" COMMAND "SaveUI" LET n = ui.Interface.getRootNode() CALL n.writeXml("auitree.xml") COMMAND "Exit" EXIT MENU END MENU END MAIN