Cannot resolve file reference in XML file
Answered
In an XML file in my project I have the following line:
<xi:include href="xml/spells.xml" xpointer="ARFI"/>
and, in an XML schema in my project:
<xs:include schemaLocation="xml/spells.xsd"/>
In both cases, Idea flags it as an unresolved file reference. The path is relative to an existing Resources Root and the application actually runs corectly - I'd just like to get rid of these error messages in my project!
Is there anything I can do to fix this?
Please sign in to leave a comment.
Hi.
Could you please provide an example project?
Here you go: https://www.dropbox.com/s/myozctyhey6cjg5/javaexperiements.tar?dl=0
Sorry it took so long!
I'm afraid, there is no way to tell IDE that your root for the resources is above the `xml` directory.
Did you consider using relative paths instead?