set element to be optional or required
tested with 20 manifest of joomla 2.5.9 for correctness