Jump to content

cucx

Members
  • Posts

    1
  • Joined

  • Last visited

cucx's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. 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
×
×
  • Create New...