I am not so certain that your code captures are incorrect because you previously tested the MENU test XML and it worked and included within your latest file was also the MENU, so I loaded both XML files and compared the MENU output and they were exactly the same meaning at least the Menu command in the new full XML file should work.
When you come back from holiday, perhaps you could re-test the XML file before going to the extent of re-capturing the IR codes
Location: Hampshire, England