使用 Notepad++ 针对 XSD 验证 XML [英] Using Notepad++ to validate XML against an XSD

查看:127
本文介绍了使用 Notepad++ 针对 XSD 验证 XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释一下如何使用 Notepad++ 来验证针对 xsd 的 xml 文件.XML 工具"插件下拉菜单中没有用于指定 XSD 文件的选项.XML 插件正确安装在 plugins 子目录中,3 个 DLL 被复制到 Notepad++ EXE 子目录.其他 XML验证"功能有效,但无法针对 XSD 进行验证.

解决方案

  1. 在 Notepad++ 中,转到 Plugins >插件管理器显示插件管理器然后找到Xml Tools插件.勾选框并点击Install

  2. 打开要验证的 XML 文档,然后单击 Ctrl+Shift+Alt+M(或者,如果这是您的偏好,请使用菜单 Plugins > XML Tools > Validate Now).
    将打开以下对话框:

  3. 点击....指向 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.

解决方案

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

  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:

  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.

这篇关于使用 Notepad++ 针对 XSD 验证 XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆