I want to add DTD to external resources, so it could be specified in XML files.
Attempt 1 (use addResource):
1) Link to my DTD can be deleted.
2) My DTD can be edited.
Attempt 2 (use addStdResource):
My DTD is not found. Link in XML shows in red, IDEA says that URI is not registered and suggests fetching it.
In both cases i use the same parameters:
PATH: this.getClass ().getClassLoader ().getResource ("dtd/my.dtd").getFile ()
What should I change to make addStdResouce work?