XML DTD un petit coup de main svp

Résolu
hsiachi Messages postés 9 Date d'inscription samedi 19 mai 2007 Statut Membre Dernière intervention 11 avril 2008 - 11 avril 2008 à 16:23
hsiachi Messages postés 9 Date d'inscription samedi 19 mai 2007 Statut Membre Dernière intervention 11 avril 2008 - 11 avril 2008 à 18:09
Bonjour à tous,

J'aurai besoin d'un petit conseil svp.
voici le fichier xml qui ne veut pas valider le dtd et je suis bloquée:

<?xml version="1.0" ?>
<!DOCTYPE doc SYSTEM "doc4.dtd">
<doc>
    <chapter num="ch1">
        <title>Chapter Title</title>
        <section>
            <title>Section Title</title>
            <note>This is a note.</note>
            This is a test.

            This is another test.

            This is another test.

            This is another test.
                  This is another test.
                <note>This is a note.</note>
                This is another test.
           

        </section>
    </chapter>
    <chapter visible='false'>
        <title>Document Title</title>
    </chapter>
</doc>
------------
<!ELEMENT doc (title?, chapter+)>
<!ELEMENT chapter (title, section*)>
<!ELEMENT section (title, (para|note)*)>
<!ELEMENT title (#PCDATA)*>
<!ELEMENT note (#PCDATA)*>
<!ELEMENT para (#PCDATA)*>
<!ATTLIST chapter num ID #REQUIRED>
<!ATTLIST chapter visible (true | false) 'false'>
------------------------------------------
Je vous en remercie d'avance.
Salutations.

1 réponse

hsiachi Messages postés 9 Date d'inscription samedi 19 mai 2007 Statut Membre Dernière intervention 11 avril 2008
11 avril 2008 à 18:09
ok resolu

je change juste un truc dans le fichier xml.
3
Rejoignez-nous