Consistency Check between XML Schema and Class Diagram for Document Versioning

Rosziati Ibrahim, Hannani Aman, Richi Nayak, Sapiee Jamel


A consistency check between design and implementation is usually done in order to check the correctness of the system’ requirements. However, if the requirements are changed over time, then the document versioning occurred within the requirements. For XML Schema, document versioning exists when there is a change in the XML Schema from its previous Schema. In order to detect the versioning of both XML Schemas, consistency rules check need to be performed to both class diagrams produced by both Schemas. The consistency between two XML Schemas is checked based on transformation rules and versioning rules. Transformation rules are used for translating the XML Schema into the class diagram, and versioning rules are used for checking the existing of document changes between two XML Schemas. Once two XML Schemas are different the consistency rules will be used for the consistency check. This paper presents an approach based on transformation rules and versioning rules to check consistency between XML Schema and UML class diagram when document versioning exist. The approach is then used for the case study to show how the consistency is checked in order to detect the versioning of two different XML Schemas. Based on the case study, the approach shows that two XML Schemas can be checked for their consistency when document versioning exist. 


consistency rules; XML schema; UML class diagram; document versioning.

Full Text:



UML2.5.1 (2018). OMG UML Specification. [Online]. Available:

W3C Primer (2004). XML Schema Part 0 : Primer 2nd Edition. [Online]. Available at:

W3C Structure (2004). XML Schema Part 1: Structures 2nd Edition. [Online]. Available at:

H. M. Chavez, W. Shen, R. B. France, B. A. Mechling, and G. Li. (2016). "An Approach to Checking Consistency between UML Class Model and Its Java Implementation," IEEE Transactions on Software Engineering, vol. 42, no. 4, pp. 322-344, April 2016.

Ibrahim, N., Ibrahim, R., Saringat, M.Z., Mansor, D and Herawan, T. (2011). “Consistency rules between UML use case and activity diagrams using a logical approach.†International Journal of Software Engineering and its Applications, 5 (3), pp. 119-134, 2011.

Cavalieri, F., Guerrini, G., and Mesiti, M. (2014). “ XSPath: Navigation on XML Schemas Made Easy.†IEE Transactions on Knowledge and Data Engineering, Vol 26, No. 2, pp. 485-499, February 2014.

Aman, H., Ibrahim, R. (2014). “Formalization of Transformation Rules from XML Schema to UML Class Diagram.†International Journal of Software Engineering and Its Application, 8(12), pp.75-90, 2014.

Aman, H., Ibrahim, R. (2017). “Formalization of versioning rules for XML schema using UML class diagram.†Journal of Theoretical and Applied Information Technology, 95 (15), pp. 3652-3661, 2017.

Tan, M., & Goh, A. (2004). Keeping Pace with Evolving XML-Based Specifications, 280–288.

Cavalieri, F., Guerrini, G., and Mesiti, M. (2011). “Updates on XML documents and schemas.†2011 IEEE 27th International Conference on Data Engineering Workshops, pp. 308–311, 2011.

Cavalieri, F. (2010). “E X up: An Engine for the Evolution of XML Schemas and Associated Documents.†In EDBT Workshop Proceedings. 2010.

Brahmia, Z., Grandi, F., Oliboni, B., & Bouaziz, R. (2012). “Versioning of Conventional Schema in the tXSchema Framework.†2012 Eighth International Conference on Signal Image Technology and Internet Based

IDEAS. (2018). House of Idea system. [Online]. Available:



  • There are currently no refbacks.

Published by INSIGHT - Indonesian Society for Knowledge and Human Development