- In the xml file, specify the URI of the DTD or schema. If the desired file is not found, the reference is marked as an error.
- Press Alt+Enter.
- In the suggestion list, choose Fetch external resource.
- In the xml file, specify the URI of the DTD or schema. If the desired file is not found, the reference is marked as an error.
- Press Alt+Enter.
- In the suggestion list, select the option Manually Set Up External Resource. The Resources dialog box opens showing the new URI selected.
-
Click
(Enter).
- In the External Resources dialog box, specify the path to the desired DTD or schema file and click OK.
- Apply changes and close the Resources dialog box.
- In the xml file, specify the URI of the desired DTD or schema.
- Press the Alt+Enter keyboard shortcut, if the specified DTD or schema is not found and marked as an error.
- In the suggestion list, select the option Ignore External Resource. The URI is added to the Ignored Resources list of the Resources dialog box.
To remove a URI from the ignore list, open the Resources dialog box ( for Windows and Linux or for Mac OS), select the desired URI in the Ignored Resources list, then click Remove.
- In the xml file, specify URI of DTD or schema.
- Press the Alt+Enter keyboard shortcut, if the specified DTD or schema is not found and marked as error.
- In the suggestion list, select the option Add Xsi Schema Location for External Resources.
- In the xml file, specify the schema. If the desired file is not found, the reference is marked as an error.
- Press Alt+Enter keyboard shortcut, if the specified schema is not found and marked as error.
- In the suggested list, select the option Manually Setup External Resource. The Map External Resource dialog box opens showing the list of all schemas found in your project.
- In the Map External Resource dialog box, select the path to the desired schema file and click OK.
PyCharm automatically tries to match schema by information available in the document, such as namespace or system id. If auto-detection fails or you need to adjust the schema manually, you can use Manually Setup External Resource intention.
