Vous êtes sur la page 1sur 1

TP 

: DTD

Document XML
<?xml version="1.0" encoding="utf-8" ?>
<livre titre="Mon livre">
<auteurs>
<auteur nom="nom_auteur1" prenom=" prenom_auteur1" " age="
age_auteur2"/>
<auteur nom=" nom_auteur2" prenom=" prenom_auteur2" " age="
age_auteur2"/>
</auteurs>
<sections>
<section titre="Section 1">
<chapitre titre="Chapitre 1">
<paragraphe>Premier paragraphe</paragraphe>
<paragraphe>Deuxième paragraphe</paragraphe>
</chapitre>
<chapitre titre="Chapitre 2">
<paragraphe>Premier paragraphe</paragraphe>
<paragraphe>Deuxième paragraphe</paragraphe>
</chapitre>
</section>
<section titre="Section 2">
<chapitre titre="Chapitre 1">
<paragraphe>Premier paragraphe</paragraphe>
<paragraphe>Deuxième paragraphe</paragraphe>
</chapitre>
<chapitre titre="Chapitre 2">
<paragraphe>Premier paragraphe</paragraphe>
<paragraphe>Deuxième paragraphe</paragraphe>
</chapitre>
</section>
</sections>
</livre>

Créez une DTD livre.dtd à partir du document XML ci-dessus.

Vous aimerez peut-être aussi