TP N°1- XML-2024
TP N°1- XML-2024
Exercise 1:
The goal of this exercise is to create an XML document structuring
the data in a directory. This directory must include at least 2 people.
For each person we would like to know the following information:
his address;
Write the associated DTD and verify that your XML document is valid
Exercise 4:
Consider the following DTD which allows you to write documents representing people:
- For each of the following XML documents, determine if it is well-formed, valid and correct
any errors
<person>
<person>
<firstname>Bennani</firstname>
<firstname>Bennani</firstname>
<lastname>Mohammed</lastname>
<lastname>Mohammed</lastname>
<lastname>Ali</lastname>
<lastname>Ali</lastname>
<tel>0683000000</tel>
<telephone>0683000000</tel>
<email>[email protected]</email>
<address><city> S.Ahras </address></city>
<address>S.Ahras</address>
</person>
</person>
Exercise 5 :
- Create an XML schema repertoire.xsd from the xml document
created in exercise 1.
Exercise 6 :
Consider the following xml document: