PyCharm
 
Get PyCharm

Referencing XML schemas and DTDs

Last modified: 30 July 2024

Your XML file may reference an external XML schema (XSD) or DTD file, for example:

or

If the referenced URL or the namespace URI is not recognized, it's marked as an error. To solve the problem:

For example, if you have a fragment like this:

and you invoke the Add Xsi Schema Location for External Resource intention action on the value of the xmlns attribute, the result will be:

At this step, you can add the schema URL, and then map the URL (or the namespace URI) onto an appropriate schema file, or add the URL (or the URI) to the list of Ignored Schemas and DTDs.