www.webdeveloper.com
Results 1 to 2 of 2

Thread: Extra content

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    2

    Extra content

    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

  2. #2
    Join Date
    Mar 2012
    Posts
    2
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles