XML function is completed, need test