Menu

#378 XML plugin: Disable DTD validation on global basis

None
closed-fixed
XML (7)
5
2016-09-14
2016-09-13
No

It would be nice to have the possibility to disable DTD validation on global basis in XML plugin. Now it can be done on a per-buffer basis by

:xml.validate.ignore-dtd=true:

comment in XML file (see http://plugins.jedit.org/plugindoc/XML/#customizing-validation). It works well but in our team the majority of developers is using other editors then jEdit and they don't want to have any jEdit specific comments in XML files (which is quite understandable).

Discussion

  • Alan Ezust

    Alan Ezust - 2016-09-13
    • status: open --> closed
    • Group: -->
     
  • Alan Ezust

    Alan Ezust - 2016-09-13

    Go to Plugin Options - XML - uncheck "Validate if DTD or Schema is available."

     
  • Vaclav Votipka

    Vaclav Votipka - 2016-09-13

    Thanks for the quick reply.
    Proposed solution disables validation at all. It is not a required behavior.

    I want to keep validation according to XML Schema but disable validation according to DTD.
    The comment

    :xml.validate.ignore-dtd=true:
    

    works exactly in this way but I need to put this comment to every XML file.
    I want to have possibility to disable DTD validation on global basis (and keep XML Schema validation).

    See http://plugins.jedit.org/plugindoc/XML/#customizing-validation for better difference description between

    :xml.validate=false:
    

    and

    :xml.validate.ignore-dtd=true:
    
     
  • Alan Ezust

    Alan Ezust - 2016-09-13
    • status: closed --> open
     
  • Alan Ezust

    Alan Ezust - 2016-09-13

    what if you put the following line into your properties file (from the jedit settings directory)?

    buffer.xml.validate.ignore-dtd=true

     
  • Alan Ezust

    Alan Ezust - 2016-09-13

    or from the beanshell: jEdit.setProperty("buffer.xml.validate.ignore-dtd", true);

     
  • Eric Le Lay

    Eric Le Lay - 2016-09-14
    • assigned_to: Eric Le Lay
     
  • Eric Le Lay

    Eric Le Lay - 2016-09-14

    Yes! It works. I didn't know that buffer properties where cascaded to jEdit properties (it makes total sense).

    I'll add a checkbox in the XML option pane for that.

     
  • Eric Le Lay

    Eric Le Lay - 2016-09-14
    • status: open --> pending
     
  • Vaclav Votipka

    Vaclav Votipka - 2016-09-14

    I can confirm that the pre-release version of XML plugin works well and it fullfils my request.
    Thank you very much

     
  • Eric Le Lay

    Eric Le Lay - 2016-09-14
    • status: pending --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.