level switching define by xml