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?

1
3 comments

Hi.

Could you please provide an example project?

0

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?

<xi:include href="./spells.xml" xpointer="MAFL"/>
0

Please sign in to leave a comment.