Validation of XML Documents: From UML Models to XML Schemas and XSLT Stylesheets

  • Eladio Domínguez
  • Jorge Lloret
  • Ángel L. Rubio
  • María A. Zapata
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4243)


The widespread use of XML brings out the need of ensuring the validity of XML data. The use of languages such as XML Schema makes easier the process of verification of XML documents, but the problem is that there are many constraints that can not be expressed by means of XML Schema. Besides, several works in the literature defend the consideration of a conceptual level in order to save XML designers from dealing with low level implementation issues. The approach of this paper is based on the inclusion of such a conceptual level, using UML as a conceptual modeling language. Starting from a UML class diagram annotated with conceptual constraints, our framework automatically generates an XML Schema together with a set of XSLT stylesheets to check those integrity constraints that can not be expressed in XML Schema.


Class Diagram Conceptual Level Integrity Constraint Schema Language Identity Constraint 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Bernauer, M., Kappel, G., Kramler, G.: Representing XML Schema in UML - A Comparison of Approaches. In: Koch, N., Fraternali, P., Wirsing, M. (eds.) ICWE 2004. LNCS, vol. 3140, pp. 440–444. Springer, Heidelberg (2004)CrossRefGoogle Scholar
  2. 2.
    Bird, L., Goodchild, A., Halpin, T.: Object Role Modelling and XML-Schema. In: Laender, A.H.F., Liddle, S.W., Storey, V.C. (eds.) ER 2000. LNCS, vol. 1920, pp. 309–322. Springer, Heidelberg (2000)CrossRefGoogle Scholar
  3. 3.
    Costello, R.: Extending XML Schemas,
  4. 4.
    Conrad, R., Scheffner, D., Freytag, J.C.: XML Conceptual Modeling Using UML. In: Laender, A.H.F., Liddle, S.W., Storey, V.C. (eds.) ER 2000. LNCS, vol. 1920, pp. 558–571. Springer, Heidelberg (2000)CrossRefGoogle Scholar
  5. 5.
    Domínguez, E., Lloret, J., Rubio, A.L., Zapata, M.A.: Elementary translations: the seesaws for achieving traceability between database schemata. In: Wang, S., Tanaka, K., Zhou, S., Ling, T.-W., Guan, J., Yang, D.-q., Grandi, F., Mangina, E.E., Song, I.-Y., Mayr, H.C. (eds.) ER Workshops 2004. LNCS, vol. 3289, pp. 377–389. Springer, Heidelberg (2004)CrossRefGoogle Scholar
  6. 6.
    Domínguez, E., Lloret, J., Rubio, A.L., Zapata, M.A.: Evolving XML schemas and documents using UML class diagrams. In: Andersen, K.V., Debenham, J., Wagner, R. (eds.) DEXA 2005. LNCS, vol. 3588, pp. 343–352. Springer, Heidelberg (2005)CrossRefGoogle Scholar
  7. 7.
    Hainaut, J.–L., Hick, J.–M., Englebert, V., Henrard, J., Roland, D.: Understanding the implementation of ISA relations. In: Thalheim, B. (ed.) ER 1996. LNCS, vol. 1157, pp. 42–57. Springer, Heidelberg (1996)CrossRefGoogle Scholar
  8. 8.
    Hu, J., Tao, L.: An Extensible Constraint Markup Language: Specification, Modeling, and Processing. In: XML 2004 Conference, IDEAlliance 2004 (2004)Google Scholar
  9. 9.
    Jellife, R.: Schematron (October 2002),
  10. 10.
    Krumbein, T., Kudrass, T.: Rule-Based Generation of XML Schemas from UML Class Diagrams. In: Tolksdorf, R., Eckstein, R. (eds.) Berliner XML Tage 2003, XML-Clearinghouse 2003, pp. 213–227 (2003)Google Scholar
  11. 11.
    Laender, A.H.F., Casanova, M.A., de Carvalho, A.P., Ridolfi, L.F.G.G.M.: An analysis of SQL integrity constraints from an entity-relationship perspective. Information Systems 10(4), 331–358Google Scholar
  12. 12.
    Marinelli, P., Coen, C.S., Vitalli, F.: Schemapath, a minimal extension to XML schema for conditional constraints. In: Proceedings WWW 2004, pp. 164–174 (2004)Google Scholar
  13. 13.
    OMG: UML 2.0, OCL 2.0 specifications (2005), Available at:
  14. 14.
    Routledge, N., Bird, L., Goodchild, A.: UML and XML schema. In: Zhou, X. (ed.) Database Technologies 2002, 13th Australasian Database Conference (2002)Google Scholar
  15. 15.
    W3C XML Working Group: Extensible Markup Language (XML) 1.0 (3rd ed.), XML Schema Part 1: Structures (2nd ed.), XSL Transformations (XSLT) Version 1.0, Available at:

Copyright information

© Springer-Verlag Berlin Heidelberg 2006

Authors and Affiliations

  • Eladio Domínguez
    • 1
  • Jorge Lloret
    • 1
  • Ángel L. Rubio
    • 2
  • María A. Zapata
    • 1
  1. 1.Dpto. de Informática e Ingeniería de Sistemas, Facultad de Ciencias Edificio de MatemáticasUniversidad de ZaragozaZaragozaSpain
  2. 2.Dpto. de Matemáticas y Computación. Edificio VivesUniversidad de La RiojaLogroñoSpain

Personalised recommendations