使用 Notepad++ 针对 XSD 验证 XML
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15436183/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using Notepad++ to validate XML against an XSD
提问by user2174533
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.
有人可以解释如何使用 Notepad++ 来针对 xsd 验证 xml 文件。“XML 工具”插件下拉菜单中没有用于指定 XSD 文件的选项。XML 插件正确安装在 plugins 子目录中,3 个 DLL 被复制到 Notepad++ EXE 子目录。其他 XML“验证”功能有效,但无法针对 XSD 进行验证。
回答by Matas Vaitkevicius
In Notepad++ go to
Plugins > Plugin manager > Show Plugin Managerthen findXml Toolsplugin. 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.
在 Notepad++ 中,转到
Plugins > Plugin manager > Show Plugin Manager然后找到Xml Tools插件。勾选框并单击Install
打开要验证的 XML 文档,然后单击Ctrl+ Shift+ Alt+ M(或者,如果这是您的偏好,则使用菜单
Plugins > XML Tools > Validate Now)。
将打开以下对话框:
单击
...。指向 XSD 文件,我很确定您将能够从这里处理事情。
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.1plugin manager is back under a different guise... Plugin Adminso now you can simply update notepad++ and have it back.
编辑:插件管理器未包含在 Notepad++ 的某些版本中,因为许多用户不喜欢它曾经展示的广告。如果你想保留旧版本,但仍然想要插件管理器,你可以在github上获取它,并通过解压缩存档并将内容复制到插件和更新文件夹来安装它。
在版本中,7.7.1插件管理器以不同的形式回归......Plugin Admin所以现在您可以简单地更新记事本++并将其恢复。

