Application1 has a xml configuration file say:
<Application1>
<ConfigApp1>Value1</ConfigApp1>
<App1Layout>Layout</App1Layout>
</Application1>
Application2 has a xml configuration file say:
<Application2>
<ConfigApp2>Value2</ConfigApp2>
<App2Layout>Layout</App2Layout>
</Options>Others</Options>
</Application2>
I want to have a common configuration file for my application which is as such:
<MyApplication>
<MyAppConfiguration>Configuration</MyAppConfiguration>
<Application1>
<ConfigApp1>Value1</ConfigApp1>
<App1Layout>Layout</App1Layout>
</Application1>
<Application2>
<ConfigApp2>Value2</ConfigApp2>
<App2Layout>Layout</App2Layout>
</Options>Others</Options>
</Application2>
</MyApplication>
and applications Application1 and Application2 should be able to configure themselves from this same configuration file.
As far as i know this is not possible as Application1/Application2 will see the start and end tag of MyApp Configuration file to MyApplication and discard it saying - invalid configuration file.
Is there any way to achieve the same without modifying application1/application2?