使用 Notepad++ 针对 XSD 验证 XML [英] Using Notepad++ to validate XML against an XSD
问题描述
谁能解释一下如何使用 Notepad++ 来验证针对 xsd 的 xml 文件.XML 工具"插件下拉菜单中没有用于指定 XSD 文件的选项.XML 插件正确安装在 plugins 子目录中,3 个 DLL 被复制到 Notepad++ EXE 子目录.其他 XML验证"功能有效,但无法针对 XSD 进行验证.
在 Notepad++ 中,转到
Plugins >插件管理器显示插件管理器
然后找到Xml Tools
插件.勾选框并点击Install
打开要验证的 XML 文档,然后单击 Ctrl+Shift+Alt+M(或者,如果这是您的偏好,请使用菜单
Plugins > XML Tools > Validate Now
).
将打开以下对话框:点击
...
.指向 XSD 文件,我很确定您可以从这里处理.
希望这可以为您节省一些时间.
某些版本的 Notepad++ 中不包含插件管理器,因为许多用户不喜欢它曾经展示的广告.如果您想保留旧版本,但仍然需要插件管理器,您可以在
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.
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.
这篇关于使用 Notepad++ 针对 XSD 验证 XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!