架构与 DTD
此页设置定义了如何验证您的 XML、HTML 与 XHTML 文件。
外部架构与 DTD
用于验证 XML 文件的本地 XML 架构(XSD)与 DTD 文件在此部分中列出。
Each entry is a mapping of a URI that may be referenced in your XML file onto an appropriate local schema or DTD file. 请使用 、
和
创建、移除和编辑映射。
项目 | 键盘快捷键 | 说明 |
|---|---|---|
URI | XML 架构(XSD)或 DTD 文件的 URL(例如 http://www.example.org/xsds/example.xsd ),或命名空间 URI(例如 http://www.example.org 、 urn:jboss:domain:1.0 )。 只读。 如果 XML 文件引用了指定的 URI,则会根据 位置 所示路径的本地文件进行验证。 | |
位置 | 对应本地 XSD 或 DTD 文件的路径(只读)。 | |
项目 | If a checkbox is not selected, a mapping is available in all of your projects. 请选择仅需在当前项目中可用的映射。 所选映射将存储在 .idea/misc.xml 或项目 .ipr 文件中。 通常通过版本控制与开发团队成员共享这些文件。 | |
Alt+Insert | 使用此图标或快捷方式打开 “映射外部资源”对话框 ,以定义 URI 与本地文件之间的新映射。 | |
Alt+Delete | 使用此图标或快捷方式从列表中移除所选映射。 | |
Enter | 使用此图标或快捷方式在 “映射外部资源”对话框中编辑所选映射。 |
忽略的架构与 DTD
URIs for ignored schemas and DTDs are listed in this section. (如果 XML 文件引用了本部分列出的 URI,GoLand 将忽略该项,并不会在编辑器中标记为错误。)请使用 、
和
添加、移除和编辑 URI。
项目 | 快捷键 | 说明 |
|---|---|---|
Alt+Insert | 使用此图标或快捷方式将新的 URI 添加到列表中。 | |
Enter | 使用此图标或快捷方式编辑所选 URI。 | |
Alt+Delete | Use this icon or shortcut to remove the selected URIs from the list. 对应的 URI 将可用于映射至本地 XSD 或 DTD 文件。 |