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
xml validation error extra content at the end of file
in Schema
Posted
Hi everybody i have a problem i can't resolve, i tried to define a db-schema in xml.dtd,
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
thanks