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 XSD file. The XML plugin is installed properly in the plugins subdir and the 3 DLLs are copied to the Notepad++ EXE subdirectory. Other XML "validation" features work but there is no way to validate against an XSD.
1 Answer
In Notepad++ go to
Plugins > Plugin manager > Show Plugin Manager
then findXml Tools
plugin. Tick the box and clickInstall
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: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.
-
2
Plugin manager
is added back now in the latest releases of Notepad++, it is now called asPlugins Admin...
– SaikatJul 30, 2019 at 8:18 -
1
-
This is magnificent and a decent solution. This should be added as a solution.– AlperJan 21, 2021 at 12:01
-
Thank you. Is there a way to check validation errors one by one? Right now I have to fix one, save it and re-run the XSD again :(– ZiyaApr 29, 2021 at 19:43
-
If you are trying to validate web.confg. Needs .xml extension. Didn't work for me with web.config. So I renamed it to web.config.xml. Jun 15, 2021 at 19:03
<!DOCTYPE XML_ROOT_NODE SYSTEM "thisXMLusesThis.dtd">
then the tool can figure it out.