«UML» 2004 — The Unified Modeling Language. Modeling Languages and Applications

Volume 3273 of the series Lecture Notes in Computer Science pp 241-259

Towards a Framework for Mapping Between UML/OCL and XML/XQuery

  • Ahmed GaafarAffiliated withFaculty of Computers and Information, Cairo University
  • , Sherif SakrAffiliated withDepartment of computers and information science, University of Konstanz

* Final gross prices may vary according to local VAT.

Get Access


The Unified Modeling Language is the standard language for modeling systems. UML has been extended to model web applications. At the same time, Web technology has become largely relying on XML documents. The structure of XML documents, namely the XML schema or DTD for these documents can be modeled using UML data structures. UML tools are usually concerned with the generation of the structure and behavior of the system that is captured by models in their equivalents in the selected platform. In this paper we introduce a novel approach for the integration between UML and XML families of technologies. We model the structure of XML using UML class diagrams and based on this, we study how queries on XML documents, namely XQuery expressions can be described using UML techniques. Here we show that modeling of XML documents and its queries represented by XQuery expressions is possible using the querying capabilities of UML Class diagram and the Object Constraint Language (OCL). As a result, we see how these two technologies compare, what the advantages of both technologies are and how they can be combined.