XML load tool tip

Is there a way to load tool tips and hot keys from XML (either from an XML file or via a PHP backend) for the menu object?
I see from the source that the items are set to ‘’ during the read process.
I tried changing the line to item[“tip”] = r.getAttribute(“tip”)||"; but then the menu did not load, so assume that there is more to it than a clumsy fix!!

You may use hotkey and tooltip tags in the xml:

Ctrl+D Click here to delete

Thanks for the swift response
I declared it in the main item line like the images.