Checking permissions from XML