Jump to content

xml validation error extra content at the end of file

Recommended Posts

Hi everybody i have a problem i can't resolve, i tried to define a db-schema in xml.dtd,

<!DOCTYPE spect-DB [<!ELEMENT spect-DB (spettacoli*)> <!ELEMENT spettacoli (conduttore+, programmazione+)> <!ELEMENT conduttore EMPTY> <!ELEMENT programmazione (giorno+)> <!ELEMENT giorno (ospite+)> <!ELEMENT ospite EMPTY>  <!ATTLIST spettacoli titolo CDATA #REQUIRED> <!ATTLIST spettacoli edizione CDATA #REQUIRED> <!ATTLIST spettacoli durata CDATA #IMPLIED>  <!ATTLIST conduttore nome CDATA #REQUIRED> <!ATTLIST conduttore costo CDATA #IMPLIED> <!ATTLIST conduttore contatto_agente CDATA  #IMPLIED> <!ATTLIST giorno data CDATA #REQUIRED><!ATTLIST giorno speciale (0|1) '0'> <!ATTLIST ospite nome CDATA #REQUIRED> <!ATTLIST ospite ruolo CDATA #IMPLIED>]>

i try to validate the code with the w3c validator but i get this error: extra content at the end of file, i cannot understand where is the problem, can you help me? ty


anyway here is the other file of my xml

<?xml version="1.0"?><!DOCTYPE spetc-DB SYSTEM "spectDB.dtd"> <spetc-DB> <!spettacoli titolo=”Servizio Pubblico” edizione=”2011/2012” durata=”3”> <conduttore nome=”Michele Santoro” costo=”950000,00”/> <programmazione> <giorno data=”23/02/2012” special=”0”> <ospite nome=”Adriano Celentano” /> </giorno> <giorno data=”01/03/2012”> <ospite nome=”Pier Luigi Bersani” ruolo=”ospite_politico”/> <ospite nome”Maurizio Belpietro” ruolo=”giornalista”/> </giorno> </programmazione> </spettacoli> </spetc-DB>

thanks :crazy:

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...