Menu from XML not appearing

Please can you tell me what is wrong with the following xml for menu loading. If I don’t have the ‘userdata’ elements then it works. Only example I found of setting userdata was in the Full XML Template in the documentation and it does match that.

<?xml version="1.0" encoding="UTF-8"?>
<menu>
  <item text="Logout" id="logoutp">
    <item text="Logout" id="logout"/>
  </item>
  <item text="Agent" id="agent">
    <item text="Add/Edit Agent" id="aeagent">
      <userdata name="menuid">winAddEditAgents</userdata>
      <userdata name="menuxsize">10</userdata>
      <userdata name="menuysize">10</userdata>
      <userdata name="menuhdr">Add/Edit Agents</userdata>
      <userdata name="menuurl">/agent/addeditagent</userdata>
      <userdata name="menuopparams"></userdata>
      <userdata name="menusingleuser">N</userdata>
    </item>
  </item>
</menu>

Thanks for your help.

The reason for the problem is empty “menuopparams” userdata tag. Try to place CDATA tag: