checking to make sure xmlMode is defined