Many Internet-based applications have adopted XML as the standard data exchange format. These XML data are typically stored in its native form, thus creating the need to present XML views over the underlying data files, and to allow users to query these views. Using a conceptual model for the design and querying of XML views provides a fast and user-friendly approach to retrieve XML data. The Object-Relationship-Attribute model for SemiStructured data (ORA-SS) is a semantically rich model that facilitates the design of valid XML views. It preserves semantic information in the source data. In this paper, we develop a method that automatically generates view definitions in XQuery from views that have been designed using the ORA-SS model. This technique can be used to materialize the views and map queries issued on XML views into the equivalent queries in XQuery syntax on the source XML data. This removes the need for users to manually write XQuery expressions. An analysis of the correctn...