xml control based script