update snippet tags with cdata
update switch snippet