omichdylan
New Member
I don't understand why this DTD from an XML document will not validate. The error it's giving me is "no document element" on the last line. Which is stupid because I can delete all but two lines of this code and it still gives me the error. I'm fairly beginner at XML so maybe someone with a little more experience take a look for me? \[code\]<?xml version = "1.0" encoding="utf-8" standalone="yes"?><!DOCTYPE events [<!ELEMENT events (event)+><!ELEMENT event (itenerary, description, icon?, leader+, coordinator+, maxpart, registeredpart, carpool?, difficulty, cost?, destination)><!ELEMENT itenerary (startdate, enddate, departuretime, location)><!ELEMENT contact (name,phone+)><!ELEMENT name (firstname, lastname)><!ELEMENT startdate (year, month, day)><!ELEMENT enddate (year, month, day)><!ELEMENT year (#PCDATA)><!ELEMENT month (#PCDATA)><!ELEMENT day (#PCDATA)><!ELEMENT departuretime (hours,minutes)><!ELEMENT hours (#PCDATA)><!ELEMENT minutes (#PCDATA)><!ELEMENT location (street,city)><!ELEMENT street (#PCDATA)><!ELEMENT city (#PCDATA)><!ELEMENT description (#PCDATA)><!ELEMENT icon (#PCDATA)><!ELEMENT leader (contact+)><!ELEMENT firstname (#PCDATA)><!ELEMENT lastname (#PCDATA)><!ELEMENT phone (landline?, cell?)> <!ELEMENT coordinator (contact)><!ELEMENT landline (#PCDATA)><!ELEMENT cell (#PCDATA)><!ELEMENT maxpart (#PCDATA)><!ELEMENT registeredpart (#PCDATA)><!ELEMENT carpool (#PCDATA)><!ELEMENT difficulty (#PCDATA)><!ELEMENT cost (#PCDATA)><!ELEMENT destination (location)> ]>\[/code\]