• Login
Community
  • Login

XML Tools - Validation problem with inline DTD

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 4.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    Luca Andrea Ludovico
    last edited by May 22, 2020, 3:05 PM

    Dear community,

    I have been using the XML Tools plug-in for quite a long time to validate XML documents embedding an inline DTD.
    In fact, it’s an easy way to make self-contained examples (XML+DTD) to my students.

    Now I have just updated the plug-in to version 3.0.4.2, and it seems not working anymore: it asks for an XML schema (XSD). The dialog says:

    Important: This dialog box is displayed because default validation schema cannot be found in XML root element. To avoid having to specify the XSD for every validation, please define the default XML schema in your root element using following syntax:…

    Here is a very simple example that available on-line tools validate (e.g., W3schools validator), and the old version of the plug-in was able to validate too:

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!DOCTYPE books [
    <!ELEMENT books (book)+>
    <!ELEMENT book (#PCDATA)>
    ]>
    <books>
      <book>The Lord of the Rings</book>
      <book>Harry Potter</book>
    </books>
    

    Thank you for helping me.

    M 1 Reply Last reply May 22, 2020, 5:25 PM Reply Quote 0
    • P
      PeterJones
      last edited by May 22, 2020, 3:32 PM

      @Luca-Andrea-Ludovico,

      Interesting. That sounds like “Need to Load XSD”; XML Tools claimed that issue #11 was fixed in v3.0.3.2 . Did it break again in v3.0.4.2, or is this a similar but not-quite-the-same issue?

      1 Reply Last reply Reply Quote 0
      • M
        Michael Vincent @Luca Andrea Ludovico
        last edited by May 22, 2020, 5:25 PM

        @Luca-Andrea-Ludovico said in XML Tools - Validation problem with inline DTD:

        Now I have just updated the plug-in to version 3.0.4.2, and it seems not working anymore: it asks for an XML schema (XSD). The dialog says:

        I would open an issue at the XML Tools Github issue tracker if you haven’t done so already. Also, provide a link to this thread in your issue there.

        I’ve had no experience interacting with that developer directly, but there have been a flurry of XML Tools updates in the past few months as it seems he migrated to a new XML engine (Replacement of libXML with MSXML) back in January this year (according to Github commits ). Since January 2020, there have been 14 new release (counting the latest pre-release ). He certainly seems active and committed to the project - and thankfully, since I use XML Tools plugin as well, although maybe not to the degree you are.

        Good luck!

        Cheers.

        1 Reply Last reply Reply Quote 2
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors