Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Section in App.config

Status
Not open for further replies.

Durkin

Programmer
Nov 6, 2000
304
GB
Hi. I want to store data in the app.config file but not necessarily in key value pairs. This is the structure I want to use:
Code:
<Ceases>
	<EirCode value="CPS">
		<PackageID value="3007">
			<UncancelledCompID value="123" />
			<UncancelledCompID value="123" />
			<UncancelledCompID value="123" />
		</PackageID>
		<PackageID value="2000">
			<UncancelledCompID value="123" />
		</PackageID>
	</EirCode>
	<EirCode value="WLR">
		<PackageID value="2000">
			<UncancelledCompID value="123" />
		</PackageID>
	</EirCode>
</Ceases>

However, the ConfigurationSettings class and related classes don't seem to be designed for this. Is there some way to do this without naming the file in the code and opening it with the System.xml assembly? Or is there some place which I should be looking for the answer?
Thanks,


Durkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top