add xml snippet perm