Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    XML Tools - Validation problem with inline DTD

    General Discussion
    3
    3
    2395
    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.
    • Luca Andrea Ludovico
      Luca Andrea Ludovico last edited by

      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.

      Michael Vincent 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones last edited by

        @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
        • Michael Vincent
          Michael Vincent @Luca Andrea Ludovico last edited by

          @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
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors