added checks to do work only if there are any XMLs
extended sudoers command list