DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT language (definition, tu, tuv, seg) >
<!ELEMENT definition ANY >
<!ELEMENT tu ANY >
<!ELEMENT tuv ANY >
<!ELEMENT seg (#PCDATA) >
<!ATTLIST tu id CDATA #REQUIRED >
<!ATTLIST tuv lang CDATA #REQUIRED >
XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<definition> # This is the line that seems to be the problem
<tu id="webpage-title-text">
<tuv lang="en">
<seg>Demo CMS</seg>
</tuv>
</tu>
</definition>
The error message I get is:
Document root element "definition", must match DOCTYPE root "language". [4]
My Questions:
Change
<!DOCTYPE language SYSTEM "language.dtd">
to
<!DOCTYPE definition SYSTEM "language.dtd">