With the rapid development of the Internet, XML is rapidly emerging and has been the de-facto standard for representing and exchanging data on the Web due to its simplicity, readability, and portability. Researches on spatiotemporal data based on XML received much attention since a considerable amount of data emerging in spatiotemporal applications both from academia and industry. However, although XML has been employed to model and handle spatiotemporal data, the study of spatiotemporal XML data has only recently started and still merits further attention. In this paper, we study spatiotemporal operations using XQuery. After presenting architecture of querying process of spatiotemporal data, we illustrate how to query spatiotemporal data using XQuery. Furthermore, we investigate query result processing by listing three query examples to show the practicality and compatibility by using XQuery.