the task of gun in XML