XML Tools - Validation problem with inline DTD
-
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.
-
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?
-
@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.