XML script in Class form