Change lamps.xml structure a bit

To use the same script for lamps.xml and switch.xml in XML editor