Added construct function for startxml