Hide items in XML-Driven Drop-Down Menu

Hi,

I would like to add a “show/hide” command to an item in this menu.

For instance:
<item name=“home” action=“gotoURL” variables=“http://www.kirupa.com”/>

to:
<item name=“home-1” action=“gotoURL” variables=“http://www.kirupa.com” show=“true”/>
<item name=“home-2” action=“gotoURL” variables=“http://www.kirupa.com” show=“false”/>

Anyone know how to do this?

Thank you very much!