Datasets are the basis of the database benchmarks. They are very important to researches on database theories and applications. Datasets of the moving object database benchmarks record the spatial and temporal information of the moving objects. Based on the XML-based moving object data model, the algorithms generating moving object datasets are designed in this paper. The object number, object types, shape changes and moving fashions can be chosen through varying the parameters. During the initializing and moving process of moving objects, functions of collision checking are provided.