What does the custom menu command string look like? The function looks
okay only there is no call to the function. Somewhere we need to call the
function once it is sourced.
So make sure the function is sourced at some point (you can do that in the
menu) and that the function is then started. Depending how you go about
doing this, you will need to have this string somewhere in the sourced
file or menu command
If you source the function from the menu, then the string should be the
last line in the function, appearing after the last curly brace. If you
source the function during startup or in the instance.acl, then you can
have the call be the command in the menu.
I'd take the function, save it, source it from the command line and then
try doing the 'saveXML()' from the command line and see what happens.