The OnPage Method
Next we change the contents of the OnPage method as follows:
ClassMethod OnPage() As %Status
{
&html<<html>
<head>
</head>
<body bgcolor="#FFEEEE">>
// invoke Showmenu to display the menu
Do ..ShowMenu("/xml/menu.xml")
&html<</body>
</html>>
Quit $$$OK
}
Note:
We have hard-coded the path name for the XML menu document to /xml/menu.xml. Make sure you use a path that matches where you have stored your XML menu document.