Jump to content

xml validation error extra content at the end of file


cucx

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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...