You are here

Defining an XML document

21 January, 2016 - 14:46

As it was presented in the Introduction, XML documents can be utilized in many areas of life, but to be useful, they have to be prepared accordingly with a given structure, comprehensible for every interested part. Therefore, the most basic skills needed for the XML data management are an ability to formulate and analyze well-formed XML documents. Their teaching is supposed to be conducted in two directions. On one hand, the knowledge concerning rules of creating XML documents should be presented. On the other hand, there is a need to take care of gaining an experience in this field. Basis for obtaining such experience is an individual, practical usage of theory supported by feedback regarding types and places of made mistakes.

Due to that fact, functionality for XML document defining was designed for the MOODLEplatform (Figure 2.3), in which verifying of a document instance correctness was the most important problem to solve. It was accomplished with usage of both the MOODLE platform and database objects. Two groups of tables were introduced. The first one is dedicated to the teachers and serves as a container for descriptions of proper documents structures. The second one is indented to collect course participants' solutions. Validation of this solution is performed by the comparison of the contents of both groups. The appropriate functions are responsible for realization of this process.

media/image3.png
Figure 2.3 The new XML activity