There is a "insertXMLMenu" function in capture's tcl demo as follow:
InsertXMLMenu [list [list "TopLevelMenu"] "" "" [list "popup" "&TopLevelMenu" "0"]]
InsertXMLMenu [list [list "TopLevelMenu" "SubMenu" ] "" "" [list "action" "&SubMenu..." "0" "SubMenuActionLabel" "MenuUpdateLabel"]]
I don't know how to fill in the parameters.
Is there I can find a document that explain these functions?