Schemas and DTDs
File | Settings | Languages and Frameworks | Schemas and DTDs for Windows and Linux
GoLand | Preferences | Languages and Frameworks | Schemas and DTDs for macOS
Ctrl+Alt+S
The settings on this page define how your XML, HTML and XHTML files are validated.
External Schemas and DTDs
Local XML schema (XSD) and DTD files that are used to validate your XML files are listed in this section.
Each entry is a mapping of a URI that may be referenced in your XML file onto an appropriate local schema or DTD file. Use , and to create, remove and edit the mappings.
Item | Keyboard Shortcut | Description |
---|---|---|
URI | A URL of an XML schema (XSD) or DTD file (for example http://www.example.org If an XML file references the specified URI, it's validated according to a local file whose path is shown in the Location columns. | |
Location | Path to corresponding local XSD or DTD file (readonly). | |
Project | If a checkbox is not selected, a mapping is available in all of your projects. Select the mappings that you want to be available only in the current project. The selected mappings are stored in .idea/misc.xml or the project .ipr file. These files are normally shared between development team members through version control. | |
Alt+Insert | Use this icon or shortcut to open the Map External Resource Dialog to define a new mapping between a URI and a local file. | |
Alt+Delete | Use this icon or shortcut to remove the selected mappings from the list. | |
Enter | Use this icon or shortcut to edit the selected mapping in the Map External Resource Dialog. |
Ignored Schemas and DTDs
URIs for ignored schemas and DTDs are listed in this section. (If an XML file references a URI listed in this section, GoLand ignores that URI and doesn't mark it as an error in the editor.) Use , and to add, remove and edit the URIs.
Item | Shortcut | Description |
---|---|---|
Alt+Insert | Use this icon or shortcut to add a new URI to the list. | |
Enter | Use this icon or shortcut to edit the selected URI. | |
Alt+Delete | Use this icon or shortcut to remove the selected URIs from the list. The corresponding URIs become available for mapping to local XSD or DTD files. |