UML for XML-GL Query Using Class Diagram and OCL

Nowadays, XML has been favored as a means of sharing and distributing data, due to its open-architectural feature. XML-GL, a graphical query language for XML document, has the advantage of structuring and defining itself. By incorporating UML, an XML document can become object-oriented and can be represented by graphical means. This paper proposes an efficient query modelling of XML-GL using UML class diagram and OCL. In order to restrict properly the modeled object the Object Constraint Language(OCL) is used. By using proposed technique, we can store and manage XML documents as object-oriented data. And, we search XML documents more efficiently by a proposed query modeling technique using UML class diagram.