Using Notepad++ to validate XML against an XSD

后端 未结 1 621
名媛妹妹
名媛妹妹 2020-12-22 23:58

Can someone explain how to use Notepad++ to validate an xml file against an xsd. There are no options in the \"XML Tools\" plugin dropdown that provides for specifying an X

1条回答
  •  有刺的猬
    2020-12-23 00:49

    1. In Notepad++ go to Plugins > Plugin manager > Show Plugin Manager then find Xml Tools plugin. Tick the box and click Install

      enter image description here

    2. Open XML document you want to validate and click Ctrl+Shift+Alt+M (Or use Menu if this is your preference Plugins > XML Tools > Validate Now).
      Following dialog will open: enter image description here

    3. Click on .... Point to XSD file and I am pretty sure you'll be able to handle things from here.

    Hope this saves you some time.

    EDIT: Plugin manager was not included in some versions of Notepad++ because many users didn't like commercials that it used to show. If you want to keep an older version, however still want plugin manager, you can get it on github, and install it by extracting the archive and copying contents to plugins and updates folder.
    In version 7.7.1 plugin manager is back under a different guise... Plugin Admin so now you can simply update notepad++ and have it back.

    0 讨论(0)
提交回复
热议问题