I have a java application that contains of 2 parts: Core project(module) and App project(module). Core module is dependent by several apps. I configure the work of my App module in config.xml file. I want to put xml file with common settings to Core module's resources to let all apps use xinclude to include this part to their configs. I use SAXParser to parse config.xml. This is what my config.xml looks like:
<?xml version="1.0" encoding="UTF-8" ?>
<myapp>
<xi:include href="common.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<app-specific-data>
...
</app-specific-data>
</myapp>
File common.xml is places in CoreModule/src/resources. How can I access this file from config.xml that is places in working directory on AppModule? Thank you.