I have a console application which will be triggered by a batch file. The application must have to load the configuration from an XML file for running… Suppose if the batch file sends a parameter “Env1” to the application.. The application should load the “Env1” config only to a c# class through serialization. The XML file format is shown below..
<EnvironmentCollection>
<Environment>
<Name>Env1</Name>
<Url>....</Url>
</Environment>
<Environment>
<Name>Env2</Name>
<Url>....</Url>
</Environment>
</EnvironmentCollection>
Any help will be appreciated greatly
Thanks
and usage would be