Loading a specific file from disc


I'm new to IDEA plugin development and I have a problem.

I'm trying to create an xml editor plugin for a configuration xml which specifies the structure of my web sites. Right in the beginning I have stumbeled on a problem of loading the requested file so that I can get the com.intellij.psi.xml.XmlDocument form it.

The problem is that I'm unable to specify exactly which file should be loaded from the disc. I must always get the file which is in: /WEB-INF/folder/file.xml

My current code (which doesn't return the specific file) is:

Can anyone help me with this?


Please sign in to leave a comment.