À titre d'exemple, voici un fichier XML typique :
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="output.xsl" type="text/xsl" ?>
<!DOCTYPE module SYSTEM "../dtd/modxml.dtd">
<module title="Titre du module"
author="Auteurs du module"
date="1er février 2004"
directory="general"
stylesdir="styles"
prefacefile="index.html"
tocfile="toc.html"
bibliographyfile="bibliographie.html"
webographyfile="webographie.html"
glossaryfile="glossaire.html"
helpfile="aide.html">
<chapter title="Titre du chapitre"
directory="Répertoire du chapitre"
counter="yes ou no"
contentfile="index.html"
abstractfile="resume.html"
qcmfile="qcm.html">
<section title="Titre de la section"
contentfile="fichier.html">
<subsection title="Titre de la sous-section"
contentfile="fichier.html" />
(vous pouvez ajouter d'autres sous-sections ici)
</section>
(vous pouvez ajouter d'autres sections ici)
</chapter>
(vous pouvez ajouter d'autres chapitres ici)
</module>
où tout ce qui est en italique est à remplacer et où les attributs en gras sont obligatoires...