Hello,
I was hoping someone can help me with an ambiguous error i keep getting, my xml,dtd and xsl is well formed and valid in some editors but when i try to validate them using the tools online and in my university my dtd throws this error:
<!ELEMENT Mod(preqi,Learning,items,exams)>
> ^
> Extra content at the end of the document
> ^
> StartTag: invalid element name
As far as i can fathom this is causing the rest to be invalid in certain validity checkers, however it is important for me to repair this error, any help on correcting this would be appreciated
I forgot to add some information,
The DTD is external,
<!ELEMENT Mod(preqi,Learning,items,exams)>
<!ELEMENT Preqi (#PCDATA)>
<!ELEMENT Learning (#PCDATA)>
<!ELEMENT items (#PCDATA)>
<!ELEMENT exams (#PCDATA)>
Start of my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Module SYSTEM "test.dtd">
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
the rest of the xml file is valid and formatted well too. yet i still get the error when validating the DTD that there is extr content at the end of the document.
Bookmarks